Question: Please write a code in Pyhton following the logic in the flowchart provided to give the output stated below. When needed user input it is

Please write a code in Pyhton following the logic in the flowchart provided to give the output stated below. When needed user input it is marked. Assuming good input; with no errors, the program runs to completion.
Scenario 1:
Enter the number of passengers: 60(user input)
Vans needed for this trip: 4
Scenario 2:
Enter the number of passengers: 32(user input)
You need additional space for less than 4 passengers.
Do you want to use a car? (Y/N) y (lowercase y user input)
This trip will require 2 vans and 1 car
Scenario 3:
Notice that this input accepts upper
and lower-case. Think about how to
manage that without checking for 'y'
and 'Y' and 'n' and 'N'.
Enter the number of passengers: 32(user input)
You need additional space for less than 4 passengers.
Do you want to use a car? (Y/N) N (uppercase N user input)
We'll add another van to the reservation.
Vans needed for this trip: 3
Scenario 4:
Enter the number of passengers: 38
Vans needed for this trip: 3
 Please write a code in Pyhton following the logic in the

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!