Purpose: This program can be used by an airline to sell tickets for seats on a commercial planeAlgorithms:1. Prompt the user if they are a customer or an employee2. If they are a customera. Display the seating chartb. Display the seating optionsc. Prompt the user to select a seating optiond. Prompt the user if they want to select a seat or let the program do ite. If they select to choose their seat manually, prompt user to input row and columnf. If their seat is take, output not availableg. If their seat is available, display the price and ask if they want to book ith. 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 rangek. Output the seat randomly generated by the program and ask if they want to book itl. 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 chart3. If they are an employeea. Display the updated seating chartb. Count how many seats are available, and display the amount to the screenc. Count how many seats are booked, and display the amount to the screend. Count how many seats are booked in First Class, and display the amount to the screene. Count how many seats are booked in Business Class, and display the amount to the screenf. Count how many seats are booked in Economy Class, and display the amount to the screeng. Display the total revenue generated for the whole flight to the screen
Reviews
There are no reviews yet.