Answered step by step
Verified Expert Solution
Link Copied!

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

1.23 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: Calories/Minutes =0.0175* MET_NUMBER* weight_in_kg, where 1 kilogram (kg)2.2 pounds (lbs) The following activities MET scores must be included in your program: SLEEPING 1 WALKING -2 BASKETBALL =8 Project: Write a program that given a input of 1 for sleeping, 2 for walking, or 3 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: MET_SELECTION_NUMBER WEIGHT MINUTES Here are some examples to get you started: Example 1: Input: 120030 Output: 47.727 Example 2 : Input: 330030 Output: 572.727 Example 3: Input: 123456 Output: 104.236

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

Discuss the role of change as part of organizational planning.

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago