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 :
Enter the number of passengers: user input
Vans needed for this trip:
Scenario :
Enter the number of passengers: user input
You need additional space for less than passengers.
Do you want to use a car? YN y lowercase y user input
This trip will require vans and car
Scenario :
Notice that this input accepts upper
and lowercase. Think about how to
manage that without checking for
and and and
Enter the number of passengers: user input
You need additional space for less than passengers.
Do you want to use a car? N N uppercase N user input
We'll add another van to the reservation.
Vans needed for this trip:
Scenario :
Enter the number of passengers:
Vans needed for this trip:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
