Question: Create the Road Trip solution you created in Lab 1 as a python program called road _ trip.py . Use the same values and algorithms
Create the Road Trip solution you created in Lab as a python program called roadtrip.py Use the same values and algorithms from Lab Prompt the user for three integers as: maximum miles per day, average speed mph and distance between minute break waypoints. Calculate the total travel hours per day and total driving hours for each of the five trips depicted below. Use print with formatting fstrings to match the output. Enter the maximum miles per day:
Enter the average speed mph:
Enter miles driven before minute break:
Total travel hours per day:
Trip Miles Hours
Dallas to New York
Dallas to Los Angeles
Dallas to Chicago
Dallas to Houston
Dallas to Anchorage
points Income by City
Create the Income by City calculations you developed in Lab as a Python program called
incomebycity.py You will prompt the user to enter the annual income for Dallas. Calculate the
equivalent income for the eight cities listed using the adjustment percentages provided. Format the
output so the data aligns in three columns as shown in the sample output below Hint: use fstrings
Sample run: highlighted text indicates data entered by user at runtime.
Enter annual income Dallas: $
Location Adjustment Equivalent Income
New York $
Los Angeles $
Chicago $
Minneapolis $
Houston $
Memphis $
San Antonio $
Toledo $
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
