Site icon Cliff Notes

Allan Hancock College Python coding Exam Practice

Allan Hancock College Python coding Exam Practice

I’m studying for my Python class and don’t understand how to answer this. Can you help me study?

Write a program called airline.py that assigns seats on an airplane. The airplane has 10 seats. The program should ask if the passenger requires a vegetarian meal or a standard meal. There are only 5 vegetarian meals available. The seats should be numbered 1-10 and no double seat should be assigned. If a passenger requires a vegetarian meal but it is not available , the system should give a choice of standard meal or print out “Next flight with a vegetarian option leaves in 4 hours”. The final printout should be the First Name , Last Name (of the passenger), seat number, and a V for Vegetarian or S for standard meal. If all the seats are taken, the program should tell the user so and that “Next flight leaves in 4 hours” .

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version