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 2.4 and the Calorie expenditure example.
The following equation estimates the average calories burned for a person when exercising:
Calories =((Age *0.2757)+(Weight *0.03295)+(Heart Rate *1.0781)75.4991)* Time /8.368
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 floating-point value with two digits after the decimal point, which can be achieved using the format specifier %.2f in your output statement. Please read 2.7 Formatted Output section to help.
Ex: If the input is:
4915514860
then the output is:
Calories: 736.21 calories
because Calories =((49 x 0.2757)+(155 x 0.03295)+(148 x 1.0781)75.4991) x 60/8.368

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!