i already have C++ class few month , but i still find difficult to write the problem analysis on this project ...
This is my question ...
A small scale Airline Company bought a new computer to computerize their airline ticket booking system. The company’s CEO asked to program the new system in C++ language.
Your job is to write a program to allocate seats for passengers for each flight. The company only has an airplane with capacity of ten seats. Your program should display an alternative menu below:
Please type 1 for “smoking”
Please type 2 for “nonsmoking”
If a passenger chooses 1, your program should allocate seat in smoking area that is from seat 1 – 5.
On the other hand if the passenger chooses 2, give them seats in the nonsmoking area that is from seat 6 – 10.
Your program should also print a boarding pass for the passenger showing their seat number and indicating their selection of smoking/ nonsmoking area.
Your program cannot allocate a seat that has been booked by other passenger. And when the smoking area is fully booked, the passenger should be given an option to book a seat in the nonsmoking area and vise versa. If the passenger agrees with the option given, allocate them a seat; otherwise inform them the next flight schedule. "
our lecturer is asking us to submit Problem Analysis (state the problem, input, output requirements ). Any clue for me ?
Thank you .
grace be with you ...