Below, type any needed input values in the rst box, then click Run program and observe the programs output in the second box. 2.26 CH2 LAB: Expression for calories burned during workout The following equations estimate the calories burned when exercising (source): Men: Calories (Age x 0.2017) (Weight x 0.09036) + (Heart Rate x 0.6309) 55.0969 x Time / 4.184 Women: Calories (Age x 0.074) (Weight x 0.05741) + (Heart Rate x 0.4472) 20.4022 x Time / 4. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: ('. Run your program as often as youd like, before submitting for grading. % return 9 Run your program as often as you'd like, before subonitting for grading Beiow, type any needed input values in the first box, then click Run program and observe the programs output in the second box. LAB ACTIVITY 2.29: LAB: Expression for calories burned during workout 10 / 10. Output each floating point value with two digits after the decimal point, which can be achieved as follows: printf("xe.21f", yourvalue) Ex: If the inputie: 49 ⋅ 155 − 148 60 the output is Calorien: 736.21 entoriesĢ.15.3: L.AB Expression for calones burned during workout main.c Load defaidt template Finclude cstalo.hs int nain ( v 01 d ) i γ ∗ Tyne your code here. LAB ACTIVITY 2.26.1: CH2 LAB: Expression for calories burned during workout 6/6 V main.cpp Load default template. which is based on a scientific joumal article (Eiounes): Calories = (( Age × 0.2757 ) + ( Weight × 0.03295 ) + ( Heart Rate × 1.0781 ) − 75.4991 ) × 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. 15 LAB: Expression for calories burned during workout The following equation estimates the average calories burned for a person when exercising. 2.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |