Question: - I need this in Python! - Your task is to create a program ( based on the provided flowchart and project description found in
I need this in Python!
Your task is to create a program based on the provided flowchart and project description found in the separate document, PDF above that will pick the leastprice bus combination. It should also calculate the final price for a tour group.
Your program should accept the number of tourists P the tour duration you can assume this will always be entered as an integer the base rates for each bus size, and the extra hourly percentage EHP assume this is entered in decimal form eg instead of and then calculate the price components and total price for the most efficient tour bussing option per day. If there is a multiday tour, the program will be run for each day of the multiday tour. Thus, your program does not need to support calculations for more than one day at a time.
Your program should display the number of small buses NSB needed and the number of large buses NLB needed, including the small bus price extension SE NSB SBP and large bus price extension LE NLB LBP The program should also show the extra charged hours ECH if any, over five. It should also display the extra smallbus price SEHC and the extralargebus price LEHC based on the hours over five hours. It should also display the total small bus price TSBP and total large bus price TLBP and the total price of the tour TP
The user should be prompted for inputs in the following order:
Number of tourists:
Tour duration:
Small bus price: SBP
Large bus price: LBP
Extra hours price: EHP
In your code, use the variable abbreviations defined above and shown on the user interface. For example, use TSBP and TLBP for totalsmallbus price and totallarge bus price respectively.
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
