Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that calculates the estimated hours and minutes for a trip given the number of miles traveled and the speed in miles per
Write a program that calculates the estimated hours and minutes for a trip given the number of miles traveled and the speed in miles per hour.
Specifically, write a program that
- Welcomes the user to the Travel Time Calculator.
- Asks user for number of miles traveled(allow user to enter fractional values)
- Asks user for the speed in miles per hour (allow user to enter fractional values)
- Calculates the number of hours and minutes for the trip to the nearest integer value. Hint: You can use the built-in function round that rounds a given number to the rounded integer value. e.g. round(4) will return 4, round(4.125) will return 4, round(4.5) will return 4 and round (4.75) will return 5.
- Prints the number of hours and minutes for the trip.
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