0% found this document useful (0 votes)
79 views3 pages

Bus Ticket Booking System

The document describes the phases of developing a bus ticket booking system program. It started with using only variables, then expanded to using decision making and loops to allow multiple users. Lists were later added to store more data. Functions were incorporated to make the code more readable and modular. File handling was implemented to persist data between uses. Finally, validations were added to check that users and the admin enter correct commands and data. The goal was to iteratively improve the program to support more users and functionality while keeping the code maintainable and robust.

Uploaded by

Umair Manzoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views3 pages

Bus Ticket Booking System

The document describes the phases of developing a bus ticket booking system program. It started with using only variables, then expanded to using decision making and loops to allow multiple users. Lists were later added to store more data. Functions were incorporated to make the code more readable and modular. File handling was implemented to persist data between uses. Finally, validations were added to check that users and the admin enter correct commands and data. The goal was to iteratively improve the program to support more users and functionality while keeping the code maintainable and robust.

Uploaded by

Umair Manzoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Bus ticket booking system

(Phases of Project)

1 – using variables:
I tried to write a program for bus ticket booking system using variables only but it can only work
instantaneously all info is lost just after submitting and printing the ticket. Only one person can use this
program. Operator is needed for this.
I want to make is reliable in such a way that many persons can book tickets and sign-in and sign-up using
their accounts. Admin must add the bus info and customer must utilize it.

2 – Decision Making:
I wrote program in which many persons can book tickets and sign-in and sign-up using their accounts.
Admin must add the bus info and customer must utilize it. By using decision-making and loops.
But problem is it cannot hold much data and can’t utilize it at will. Only 3 users can use it for now with
current knowledge I can’t extend it but in future it’ll be useful if I can store more users.

3 – Using Lists:
I wrote program in which many persons can book tickets and sign-in and sign-up using their accounts.
Admin must add the bus info and customer must utilize it. By using decision-making and loops and using
lists.
Now it can hold bigger data but problem is my program is complex (highly coupled). I can’t track any error
and in future it can’t be utilized again for upgrades with current format. If any error rise we have to search
the whole code.
4 – Using functions:
I wrote program in which many persons can book tickets and sign-in and sign-up using their accounts.
Admin must add the bus info and customer must utilize it. By using decision-making and loops and using
lists and functions. Now program is readable and very less complex also errors are identified within impulse.
But data is lost when we are not using it in this way we can’t keep track of users accounts and information.

5 – File handling:
I wrote program in which many persons can book tickets and sign-in and sign-up using their accounts.
Admin must add the bus info and customer must utilize it. By using decision-making and loops and using
lists and functions and using file handling this time. Now program is readable and very less complex, also
errors are identified within impulse and data is stored on files so we can use it latter.
But it can’t check whether data entered is correct or not. We can’t check if user or Admin enters wrong
command.

6 – validations:
I wrote program in which many persons can book tickets and sign-in and sign-up using their accounts.
Admin must add the bus info and customer must utilize it. By using decision-making and loops and using
lists and functions, file handling and using validations this time. Now program is readable and very less
complex, also errors are identified within impulse and data is stored on files so we can use it latter and we
can ask user to input correct command if he/she entered something wrong.

You might also like