Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BONUS OPPORTUNITY 1 5 POINTS Copy Lab 0 1 P 3 . py to another file and name it Lab 0 1 Bonus.py . Rewrite
BONUS OPPORTUNITY POINTS
Copy LabPpy to another file and name it LabBonus.py
Rewrite LabBonus.py so that it takes it calculates the whole number of hours and the remaining minutes and outputs the results.
The program does NOT have to change the nouns to account for hour or minute. In other words, the sentence can still read as hours and minutes and does not need to change to singular nouns.
Submit LabBonus.py to Blackboard for credit. A screenshot is not required.
To receive the full bonus,
o The program must execute with no runtime errors.
o The program must perform the correct calculation.
o The number of hours should be displayed as a whole number, and the minutes should be displayed with digits after the decimal point.
o The program comments should also be updated where appropriate.
Sample Output:
Enter number of miles:
Enter speed in MPH:
You should cover that distance in hours and minutes.
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