Question: Write a calorie expenditure program called Calories based on the formulas given at the end of Section 2 . 4 . Prompt the user to

Write a calorie expenditure program called Calories based on the formulas given at the end of Section 2.4. Prompt the user to enter age (in years), weight (in pounds), heart rate (beats per minute), and time (in minutes) and output the calorie expenditure for both men and women with 2 decimal places. See Section 2.7 for how to format output with a certain number of decimal places.
For example,
$ java Calories
Age (yrs): 49
Weight (lbs): 155
Heart Rate (bpm): 148
Time (min): 60
Calories (man): 891.47
Calories (woman): 580.94

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 Databases Questions!