Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output the average calories burned for a person. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('Calories: {:.2f} calories'.format(calories)) Ex: If the input is: 49 155 148 60 then the output is: Calories: 736.21 calories 247772.2002516.qx3zqy7 LAB ACTIVITY 1.22.1: LAB: Expression for calories burned during workout     Enter program input (optional)

Question

1.22 LAB: Expression for calories burned during workout

 

The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (source):

Calories = ( (Age x 0.2757) + (Weight x 0.03295) + (Heart Rate x 1.0781) — 75.4991 ) x Time / 8.368

Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output the average calories burned for a person.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('Calories: {:.2f} calories'.format(calories))

Ex: If the input is:

49 155 148 60

then the output is:

Calories: 736.21 calories
247772.2002516.qx3zqy7
LAB ACTIVITY
1.22.1: LAB: Expression for calories burned during workout
 
 
Enter program input (optional)

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Algorithms

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: The figure above shows a pole with a spring around it and a 2.5 kg block with a hole in the middle h...

A: Given that the frequency of the standing wave is 10Hz, and the spring-mass (m=2.5) system also vibra...

Q: Fe+ (ag) + Zn(s) Fe(s) + Zn?+(aq) E cell = +0.32 V A galvanic cell generates a cell potential of +0....

A: Click to see the answer

Q: One company's bottles of grapefruit juice are filled by a machine that is set to dispense an average...

A: Given that the company's bottles of grapefruit juice are filled by a machine that is set to dispense...

Q: At 298K, NH4NO3 readily dissolves in water, suggesting that the change in free energy (ΔG) favors th...

A:   Ammonium nitrate consists of ionic bonds packed tightly together.

Q: A century ago, the average height of adult women in the United States was 63 inches. Researchers bel...

A: Given ,population mean (μ)=63Sample size (n)=40Sample mean (X¯)=64.2Standard deviation (s)=2.9

Q: In which of the following situations would parallel systems MOST likely be used to help analyze data...

A: Hey there, I am writing the solution for the above mentioned problem below. I have read the question...

Q: Mass Hanger A group of students must study the oscillatory motion of a pendulum. One end of a light ...

A: We are authorized to answer one problem at a time, since you have not mentioned which one you are lo...

Q: Gian's parents have noted that he seems to have a hard time socially relating to his peers as he can...

A: Autism Spectrum Disorder or ASD is a disorder that affects the nervous system of a child which ultim...

Q: A 95 percent confidence interval of the form p̂ ± E will be used to obtain an estimate for an unknow...

A: Click to see the answer