Question: In this Lab, we are going to work on using variables inside calculations or expressions. Please make sure to read 2 . 4 and the
In this Lab, we are going to work on using variables inside calculations or expressions. Please make sure to read and the Calorie expenditure example.
The following equation estimates the average calories burned for a person when exercising:
Calories Age Weight Heart Rate Time
Write a program using the following input variables:
age years
weight pounds
heart rate beats per minute and
time minutes respectively.
And output the average calories burned for a person.
Output each floatingpoint value with two digits after the decimal point, which can be achieved using the format specifier f in your output statement. Please read Formatted Output section to help.
Ex: If the input is:
then the output is:
Calories: calories
because Calories x x x x
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
