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 :\
double pas_num;
cout<<"Enter the passport number"<<endl;
cin>>pas_num;
then we define a single array for each zone in the plane as following :
double B_man[5];
double people[5];
6- write two fo
1
Expert's answer
2013-06-20T08:08:02-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment