Question

In: Electrical Engineering

write a report about travel agency in c++ not a program writing just report writing

write a report about travel agency in c++ not a program writing just report writing

Solutions

Expert Solution

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.


Related Solutions

research about the importance of travel agency
research about the importance of travel agency
Write a C program that opens a file called "numbers.txt" in writing mode. The program should...
Write a C program that opens a file called "numbers.txt" in writing mode. The program should then read floating point numbers from the keyboard, and write these lines to the opened file one per line, stopping when the number 0 is entered. Your program should check to make sure that the file was opened successfully, and terminate if it was not.
TEXT ONLY PLEASE (PLEASE NO PDF OR WRITING) C++ CODE Instructions Write a program that implements...
TEXT ONLY PLEASE (PLEASE NO PDF OR WRITING) C++ CODE Instructions Write a program that implements the algorithm given in Example 1 - 3 (Chapter 1), which determines the monthly wages of a salesperson. The instructions for Example 1 - 3have been posted below for your convenience. Example 1 - 3 Every salesperson has a base salary. The salesperson also receives a bonus at the end of each month, based on the following criteria: If the salesperson has been with...
write 10 slides powerpoint with graphs and diagramns and avoid full slide writing about DNA. just...
write 10 slides powerpoint with graphs and diagramns and avoid full slide writing about DNA. just 10 slides PowerPoint thank you ,
How would I write this driver program in C++?? We just started learning C++ and I...
How would I write this driver program in C++?? We just started learning C++ and I still don't understand how to use classes or randomly generate numbers, and I'm struggling to complete this assignment. The premise of the whole assignment is to randomly generate dates within a range and format the dates in 3 different ways. Calendar.cpp Create a driver program with a main function. Use symbolic constants or "const" declarations here, also. In particular, define local constant SIZE to...
Program in C: Write a program in C that reorders the elements in an array in...
Program in C: Write a program in C that reorders the elements in an array in ascending order from least to greatest. The array is {1,4,3,2,6,5,9,8,7,10}. You must use a swap function and a main function in the code. (Hint: Use void swap and swap)
Using Java, The program you will be writing displays a weekly payroll report. A loop in...
Using Java, The program you will be writing displays a weekly payroll report. A loop in the program should ask the user for the employee’s number, employee’s last name, number of hours worked, hourly pay rate, state tax, and federal tax rate. After the data is entered and the user hits the enter key, the program will calculate gross and net pay then displays employee’s payroll information as follows and asks for the next employees’ information. if the user works...
Draw a data model for the following: A travel agency is frequently asked questions about tourist...
Draw a data model for the following: A travel agency is frequently asked questions about tourist destinations. For example, customers want to know details of the climate for a particular month, the population of the city, and other geographic facts. Sometimes they request the flying time and distance between two cities. The manager has asked you to create a database to maintain these facts.
I am writing a shell program in C++, to run this program I would run it...
I am writing a shell program in C++, to run this program I would run it in terminal like the following: ./a.out "command1" "command2" using the execv function how to execute command 1 and 2 if they are stored in argv[1] and argv[2] of the main function?
Write a program in C (NOT C++ or C#) The program inputs 5 elements into each...
Write a program in C (NOT C++ or C#) The program inputs 5 elements into each of 2 integer arrays. Multiply corresponding array elements, that is, arrayOne[0] * arrayTwo[0], etc. Save the product into a third array called prodArray[ ]. Display the product array.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT