Answer to Question #32212 in C++ for Ahmed
Airline Booking System
a small airline company bought a computer to automate reserving tickets.
it asks me to build it's system
This airline company has one plane which has 10 seats
10 seats are split into two zones: 5 seats for business man and 5 for normal people .
write a code to solve these problems as following :
1- Define a variable represents the booking zone.
2- Display these sentences on the screen.
press 1 : to reserve in business man zone .
press 2 : to reserve in Normal people zone.
3- Define variables represents 5 seats for each zone (counter for each zone).
4- Reserve a ticket for one person (verify if there is empty seats than decrease the counter).
5- Repeat the above code to five seats.
if we suppose a variable represents a passport number for person as following :\
cout<<"Enter the passport number"<<endl;
then we define a single array for each zone in the plane as following :
6- write two fo
Submit it with all requirements as an assignment to our control panel and we'll assist you.
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!