Question: COP 2512-IT Programming Fundamentals Write a program that assigns seats on a small airplane (30 seats: 10 rows with 3 seats each). Your program should
COP 2512-IT Programming Fundamentals Write a program that assigns seats on a small airplane (30 seats: 10 rows with 3 seats each). Your program should display a menu of alternatives: Please choose an option: 1 for "first class" 2 for "economy" 3 to view seating chart (vertical) 4 to view seating chart (horizontal) 0 to exit If the person types 1, then your program should ask the user for a seat number in the first class section (seats 1-9). If the person types 2, then your program should ask the user for a seat number in the economy section (seats 10-30). Your program needs to validade that the user entered a valid seat number and check if the seat is empty before assigning it. Your program should not assign a seat that has already been assigned. If the person types 3, then your program should display a seat map of the plane, with each o empty seat represented by an 'o' and each occupied seat represented by an . You should display the seats on the plane in the following orientation. Front loxxI 0 910 F3 4 FS F7 FB
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
