Question: a simple and understandable python code for below question d Safari File COED Edit View History You will write a program to create an airline

a simple and understandable python code for below question

a simple and understandable python code for below question d Safari FileCOED" Edit View History You will write a program to create anairline reservation system for a small airline. You are to write aprogram to assign seats for a flight with a capacity of 10.

d Safari File COED" Edit View History You will write a program to create an airline reservation system for a small airline. You are to write a program to assign seats for a flight with a capacity of 10. (Assume 1 seat per row) Bookmarks Window Help H Iawrencetech.instructurecom Iru Assignment Your program will have a menu that allows the user to choose the following: i. First Class 2. Economy 3. Exit Seating Chaxt: ['A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A'] Chance ::: If the user selects option 1, user will be prompted to select a seat between rows 1 and 5. User should only be able to select a seat from 1 to 5. Program should display an appropriate message if user selects any other seat. If the user selects option2, user will be prompted to select a seat between rows 6 and 10. User should only be able to select a seat from 6 to 10. Program should display an appropriate message if user selects any other seat. When user is given the option to select the type of seat, it should also display the seating chart with which seats are available and which seats are taken. You need to create a list to represent the seating chart of the plane. Initialize all elements of the list to \"A" for available. As the seats are occupied, the A should be replaced by \"X\" for no longer available. nameluae'mneem J1 ml'CCQJ d Safari File Edit View History Bookmarks 0 0 ED v - The program should continue to run until user selects option 3 to exit the program. 0 Your program needs to be modular( at a minimum you need to have the following four functions: firstClass, economy, menu, main 0 Your program needs to have the same menu as shown in the output below. \"HQ-\"3363 Safari File Edit View History Bookmarks Window Help O 8 Fri Oct 6 7:50 PM .. . 1 PM Please select your seat number (1 - 5) :6 This seat is not in the First Class section. Please select your seat number (1 - 5) : PM Sample Output 2: User selected a seat that is already occupied. Notice after displaying an appropriate message, program prompts the user to select a valid seat number. 1. First Class (Rows : 1 to 5) 2. Economy (Rows : 6 to 10) 3. Exit Seating Chart : ['A' , 'A', 'X' , 'A' , 'A' , ' A' , 'A' , , 'A' , 'A'] Choice ==>1 Please select your seat number (1 - 5) :3 This is seat is not available. Please select another seat. Please select your seat number (1 - 5) :| thon 3.11 25,35 OCT 6 PC istvSafari File Edit View History Bookmarks Window Help O 8 Fri Oct 6 7:51 PM .. . 1 Please select your seat number (1 - 5) :3 This is seat is not available. Please select another seat. .py Please select your seat number (1 - 5) :| Sample Output 3: Economy Section is full. Once all the economy seats are taken, notice the menu below has the word "Full" displayed for option 2. PM 1. First Class (Rows : 1 to 5) 2. Economy (Rows : 6 to 10) Full 3. Exit Seating Chart : ['A' , 'A' , 'X' , ' A' , 'A' , 'X ' , 'X ' , ' X ' , ' * ' , ' * ' ] PM Choice ==> Deliverables: PM 1. A well-documented working python program (.py file) thon 3.11 25,35 OCT 6 PC stv

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Law Questions!