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 least-price 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 e.g 0.25 instead of 25%) and then calculate the price components and total price for the most efficient tour bussing option per day. If there is a multi-day tour, the program will be run for each day of the multi-day 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- small-bus price (SEHC) and the extra-large-bus 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: P
Tour duration: H
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 total-small-bus price and total-large- bus price respectively.
- I need this in Python! - Your task is to create

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