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.
C++ Code Writing prompt: Grade Calculation: Write a program that asks the user to enter in...
C++ Code Writing prompt: Grade Calculation: Write a program that asks the user to enter in a number greater than or equal to zero and less than or equal to 100. If they do not you should alert them and end the program. Next, determine the letter grade associated with the number. For example, A is any grade between 90 and 100. Report the letter grade to the user.
I am Writing a C-Program to read and write files. but none of my code is...
I am Writing a C-Program to read and write files. but none of my code is working like it should be. Please fix all code and supply output response. Please try to use existing code and code in comments. But if needed change any code that needs to be changed. Thank you in advance //agelink.c //maintains list of agents //uses linked list #include <stdio.h> #include <stdlib.h> #define TRUE 1 void listall(void); void newname(void); void rfile(void); void wfile(void); struct personnel {...
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 ,
WRITING REPORT ABOUT ( internationalization of education ) Introduction The importance of the topic, definiton about...
WRITING REPORT ABOUT ( internationalization of education ) Introduction The importance of the topic, definiton about key terms, context - What did they do purpose of the reseach) How did they do it ( data collection, data analysis, sample selection) What did they find (results of the study) Critique about the previous research In your own words, what further studies can you suggest? And a general discussion and conclusion part.
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...
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.
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT