In: Electrical Engineering
write a report about travel agency in c++ not a program writing just report writing
Here i am going to explain about Bus reservation system in C++ programming language.
The main aim of the bus reservation system is to reserve the timings of the bus , number of seats booked and to reserve the data of the customers.Since C++ is a object oriented program we can,t work without using classes.So our first aim to identify how many number of classes we need to define. one class is for bus which stores destination of bus,bus ID,how many number seats are booked and the second class is for customer which stores the information of customer and the third class is for booking. So we can keep different classes for different applications.
class :
In this class, private parameters are bus destination string,bus time,maximum seats,how many are booked,which have scope only within the class.public parameters are bus id intialised to 0,max seats intialised to 50 and booked seats initialised to 0 .Time to 9.15(say) and destination " " using "strcpy" . now we need to declare functions to store ,show , display the data. where function declaration will be outside the class.with the help of these functions we wre going to update the data but not change the data and return the updated values. In store function we need to update and store the data and we are going to show these values using display function.Now, in main function, we need to give the conditions according to the data using switch case.write the logic in different case of different input and also for cancelling tickets.