2.29: LAB Expression for calories burned during workout zyBooks catalog Help/FAQ Donia Howard- 2.29 LAB: Expression for calories burned during workout The following equations estimate the calories burned when exercising (source) Women: Calories= ((Age x 0.074)-(Weight x 0.05741)+(Heart Rate x 0 4472)-20 4022)x Time/4.184 Men: Calories- ((Age x 0.2017) + (Weight x 0.09036)+ (Heart Rate x 0.6309)-55.0969) x Time/4184 Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes) respectively Output calories burned for women and men Output each floating-point value with two digits after the decimal point, which can be achieved as follows ("%.2f", yourValue) Ex If the input is 49 155 148 60 the output is Women $50.94 klories 201 591.47 calories arch Flash 148 resul ed durine nedĤ043881872570x37 LAB ACTIVITY 2.29.1: LAB Expression for calories burned during workout 1 import java.util. 1.21 LAB: Expression for calories burned during workout The following equations estimate the calories burned when exercising (source) Women Culories - (Age x 0.074) - (Weight 0.05741) + (Heart Rate x0.4472) - 20.4022 )x Time / 4 184 Men Calories ((Age x 0 2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) - 55. 2.28 LAB: Expression for calories burned during workout This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |