Question: Create a python loop program On the treadmill, you can burn 3.9 calories per minute. Create a program that will show the number of calories
Create a python loop program
On the treadmill, you can burn 3.9 calories per minute.
Create a program that will show the number of calories burned after 10, 15, 20, 25 and 30 minutes.
Create a loop to run the program more than once, And using different number of minutes
Input: number of minutes (30 minutes first time)
Validation: minutes must be an integer
Minutes must be greater than 10
(this implies minutes cannot be negative or zero)
Minutes must be a multiple of 5 (divisible by 5) Output:
Minutes ------------ 10
. . .
30
------------
Calories Burned: 117
calories ------------ 39
.. . 117
--------------
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
