Question: please include comments to explain Design classes to handle the data in the Passengers.csv file. Convert each line in the csv file to a single

please include comments to explain

Design classes to handle the data in the Passengers.csv file. Convert each line in the csv file to a single Passenger. Here is an excerpt from the file:

Last,First,Row,Seat lilychu,dat,9,B yuheng,hallen,26,D chau,sangreet,18,A micheal,michelle,7,F

Design classes to support statements:

passenger = Passenger("micheal","michelle",7,'F') jet = Jet(20,16) # 40 rows, 5 seats per rows jet.insert(passenger)

* The Jet contains 40 rows with 5 seats per row. 40 rows and 5 column filled, initially, with empty seats.

* Each Row has seats A thru F for seating assigned Passengers. All the empty Seat objects are pre-inserted in a Jet Row sequentially prior to inserting Passengers. jet.insert inserts a Passenger in a Seat object. Passenger sits in his/her assigned Seat (A-F) in the assigned Row (1 - 40).

After inserting all the passengers in the jet, write code necessary to support statements:

pfound = if passenger in jet: print(pfound)

for i in range(len(jet)): print(jet[i]) # prints a passenger

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