$15
Purpose: This program can be used by an airline to sell tickets for seats on a commercial plane
Algorithms:
1. Prompt the user if they are a customer or an employee
2. If they are a customer
a. Display the seating chart
b. Display the seating options
c. Prompt the user to select a seating option
d. Prompt the user if they want to select a seat or let the program do it
e. If they select to choose their seat manually, prompt user to input row and column
f. If their seat is take, output not available
g. If their seat is available, display the price and ask if they want to book it
h. If they want to book it, mark the seat as occupied, and display the total cost If no, still output the total cost
(However, if their row is 6, 7, 15, or 16, ask if they are over 18. Only 18 can book exit row seats)
i. Display the updated seating chart
j. If they select to let the program choose a seat, randomly generate a seat within the seating option range
k. Output the seat randomly generated by the program and ask if they want to book it
l. If they want to book it, mark the seat as occupied, and display the total cost. If no, still output the total cost
(However, if their row is 6, 7, 15, or 16, ask if they are over 18. Only 18 can book exit row seats)
m. Display the updated seating chart
3. If they are an employee
a. Display the updated seating chart
b. Count how many seats are available, and display the amount to the screen
c. Count how many seats are booked, and display the amount to the screen
d. Count how many seats are booked in First Class, and display the amount to the screen
e. Count how many seats are booked in Business Class, and display the amount to the screen
f. Count how many seats are booked in Economy Class, and display the amount to the screen
g. Display the total revenue generated for the whole flight to the screen