Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started