Answer to Question #28589 in C++ for Kinisimere Ravasua

Question #28589
A Northern Airlines has just purchased a computer for its new automated reservation system. You have been asked to build the new Application using C++. The company has a single airplane (capacity 20 seats) that performs two flights per day: flight number FL600 at 10:00 and FL620 at 16:00 respectively. You are to write a program to assign seats on each flight of the airline.
First, your program should read from the keyboard the current time and display the following menu of alternatives if there are still flights during that day (i.e. the menu is displayed only if it's is not 15:30 yet, as all bookings should be done at least 30 minutes before the flight)
1. for "First Class"
2. for "Business Class"
3. for "Economy Class.
If entered time is 15:30 or more, the following message should be displayed:
"Sorry, it's too late to make any booking today! Please, come back tomorrow"
Once the menu displayed, if the airline agent types 1, your program should display the flights that have First
class seats available, if any or the following message: "Sorry, all first class seats are taken today. Please, try another class or come back tomorrow".
If there are available seats, the agent will choose a flight number (if more than one have available seats), enter the name of the passenger and assign a seat in the first class section (seats 1-5).
If the airline agent types 2, your program should follow the same procedure as before but to assign a seat in the
business section (seats 6 -10), and if the agent types 3, your program should follow the same procedure as before to assign a seat in the economy section (seats 11 - 20).
Once the booking is completed, your program should print/display a boarding pass indicating the person's name, seat number and whether it is in the first class, business class or economy section of the plane. The boarding pass should also indicate how long the passenger should wait before boarding. Note that boarding is always done 30 minutes before flight. It should also print a report of the booking details that includes in addition to the above information, the detailed payment. The payment should include the flight price, the surge charges and the taxes.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS