Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . 2 3 Metabolic Equivalents The ratio of the metabolic rate of the average person while resting to the metabolic rate of a person
Metabolic Equivalents The ratio of the metabolic rate of the average person while resting to the metabolic rate of a person performing a particular task is called a metabolic equivalent or MET. The number of calories burned per minute may be estimated using the formula: CaloriesMinutes METNUMBER weightinkg where kilogram kg pounds lbs The following activities MET scores must be included in your program: SLEEPING WALKING BASKETBALL Project: Write a program that given a input of for sleeping, for walking, or for basketball will select a mets number and returns the number of calories used while performing that task. The returned value should be accurate to the third decimal place. The input will always be in integers, and will be of the form: METSELECTIONNUMBER WEIGHT MINUTES Here are some examples to get you started: Example : Input: Output: Example : Input: Output: Example : Input: Output:
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