Answered step by step
Verified Expert Solution
Link Copied!

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 15 POINTS
Copy Lab01P3.py to another file and name it Lab01Bonus.py.
Rewrite Lab01Bonus.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 1 hour or 1 minute. In other words, the sentence can still read as 1 hours and 1.00 minutes and does not need to change to singular nouns.
Submit Lab01Bonus.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 2 digits after the decimal point.
o The program comments should also be updated where appropriate.
Sample Output:
Enter number of miles: 150.0
Enter speed in MPH: 70.0
You should cover that distance in 2 hours and 8.57 minutes.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions