Question
Please help me with this C++ code. One way to measure the amount of energy that is expended during exercise is to use metabolic equivalents
Please help me with this C++ code.
One way to measure the amount of energy that is expended during exercise is to use metabolic equivalents (MET). Here are some METS for various activities:
Running 6 MPH: 10 METS
Basketball: 8 METS
Sleeping: 1 MET
The number of calories burned per minute may be estimated using the formula:
Calories/Minute = 0.0175 x MET x Weight(Kg)
Creat a program that inputs a subject's weight in pounds, the number of METS for an activity, and the number of minutes spent in that activity and then outputs the estimate for the total number of calories burned. The result must be displayed as a float number, of two decimal places. (At least one of your variables must be declared as a const variable). Note that MET can't be a constant since its value comes from the user.
Sample Run:
Hi there!
Please enter your full name: Abeer Alameer
Abeer Alameer, welcome to the calorie calculator. Enter your weight in pounds: 140 Enter the number of METs for the activity: 6 Enter the number of minutes spent exercising: 50 you burned an estimated 334.09 calories.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started