Question: In python please. Airline Ticket Reservation Topics: Functions, Decision, Repetition, List Problem Description: (capacity: 10 seats). person if it's acceptable to be placed in the
In python please.



Airline Ticket Reservation Topics: Functions, Decision, Repetition, List Problem Description: (capacity: 10 seats). person if it's acceptable to be placed in the first-class section (and vice versa). If yes, make the appropriate seat assignment. If no, display the message "Next flight leaves in 3 hours." Programming Requirements: Design an application named AirLineTicketLastName.py to help clients to book airline ticket. Your program should include the following functions: - hasMoreEconomySeat/(seats:listi)->bool. If not all economy seats(6th - 10th elements) were assigned, return True, otherwise, return False. - hasMoreFirstClassSeatiseats: list)->bool If not all first-class section (1st - 5 th elements) seats were assigned, retum True, otherwise, return False. - assignEconomySeati(seats: list)-sint. Assign the first available economy seat to the client and retum the seat number, which should be a number in the range of [6,10]. Return - 1 if no economy seat is available. - assignFirstClassSeat(seats: list)->int. Assign the first available first-class seat to the client, and return the seat number, it should be a number in the range of [1,5]. Return - 1 if no first class seat is available. - printBoardingPass(assignmentSeatNumber: int) It prints boarding pass as follows: Seat Number: 7 Economy section or Seat Number: 3 First-class section Note: A personal/assignment information block is required at the beginning of the source code. The following information should be included: your full name, assignment \#, file name(s), due date. Example: "' Assignment: Airline Ticket Name: Paul Davis File Created on March 10, 2024 Sample output: Submission Requirements: 1. Source code: the python file named as AirlineTicketYourlastname.py. 2. Project report: Include pseudocode, at least 5 screenshots of test runs in one PDF file and name it BookingReportYourlastname.pdf
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
