Scenario: You are working at Speedy Bus, a transportation company that transports people in style. It is your job to create a simple reservation system that will help the company track tickets for its bus service. Currently, the company only has one bus. The bus has eight seats, as shown in the diagram below:
***FRONT***
Seat 1 Seat 2 Seat 3 Seat 4 Seat 5 Seat 6 Seat 7 Seat 8
Seats 1 and 2 are the most luxurious with the most leg room, and cost $10.60 each. Seats 7 and 8 are smaller than all other seats and only cost $5.45 each. All other seats cost $7.80 each.
Create a modular program that will allow an operator to take reservations for seats on the bus. To make a reservation, an operator will identify the seat a customer wishes to book. A seat cannot be booked by more than one customer, so the operator should be informed if a specific seat is already booked, or if it was successfully booked by the customer wanting to book it. The process will continue until there are no more customers that wish to book seats.
Once there are no more customers that wish to book seats, if at least 3 seats are occupied, the program will output a report (dialog box) containing the number of seats occupied, which seats are occupied and how much money the company will earn for the trip. If at least 3 seats are not occupied, the program will inform the operator the bus is not full enough to run, and they should try again later when there are more customers. At this point, the program will end.