Question: Design a program that helps to seat passengers on a plane. if their ticket number is an odd number then they are seated in the

Design a program that helps to seat passengers on a plane. if their ticket number is an odd number then they are seated in the economy class in aisle A. If their ticket number is even then they are seated in the economic class in aisle B. If the ticket number is even and greater than 12 then they are seated in first class. Output to each passenger what aisle they belong to after they are asked to input their ticket number.


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def seatpassengerticketnumber if ticketnumber 2 0 if ticket... View full answer

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 Programming Questions!