"Write a program that computes the amount of calories burned when you run. Your program should ask for the duration of the run in minutes the speed of the run in mph and th ight in pounds. Computes the amount of calories burned and prints it. The calories/minute of run burned is computed using the expression below: \n", "$$calories/minute=(MET weight 1.6)/200$$\n", " \n", "Use a function to compute the value of MET as presented in the table below.\n", "\n", "Speed (mph) ΜΕΤ |\n", |\n", 5 or less 6 8.3 9.8 |\n", |\n", 7 11.0 11.8 12.8 |\n", 10 14.5 |\n", 12 or more 19.0 |\n", "\n", "For values in between use the largest MET. Test your code with the values: \n", ---`\n", "150 lbs, 6.5 mph and 45 minutes => 594.0 calories\n", 8 9

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Python

"Write a program that computes the amount of calories burned when you run. Your program should ask for the duration of the run in minutes the speed of the run in mph and the
weight in pounds. Computes the amount of calories burned and prints it. The calories/minute of run burned is computed using the expression below: \n",
"\n",
"$$calories/minute= (MET*weight*1.6)/200$$\n",
"1
\n",
"Use a function to compute the value of MET as presented in the table below.\n",
"\n",
Speed (mph)
ΜΕΤ |\n",
|\n",
5 or less
8.3
|\n",
6
9.8
|\n",
7
11.0
|\n",
8
11.8
|\n",
9
12.8 |\n",
11
10
14.5
|\n",
12 or more
19.0 |\n",
"\n",
"For values in between use the largest MET. Test your code with the values: \n",
`\n",
"150 lbs, 6.5 mph and 45 minutes ==> 594.0 calories\n",
"200 lbs, 9.8 mph and 30 minutes ==> 696.0 calories\n",
Transcribed Image Text:"Write a program that computes the amount of calories burned when you run. Your program should ask for the duration of the run in minutes the speed of the run in mph and the weight in pounds. Computes the amount of calories burned and prints it. The calories/minute of run burned is computed using the expression below: \n", "\n", "$$calories/minute= (MET*weight*1.6)/200$$\n", "1 \n", "Use a function to compute the value of MET as presented in the table below.\n", "\n", Speed (mph) ΜΕΤ |\n", |\n", 5 or less 8.3 |\n", 6 9.8 |\n", 7 11.0 |\n", 8 11.8 |\n", 9 12.8 |\n", 11 10 14.5 |\n", 12 or more 19.0 |\n", "\n", "For values in between use the largest MET. Test your code with the values: \n", `\n", "150 lbs, 6.5 mph and 45 minutes ==> 594.0 calories\n", "200 lbs, 9.8 mph and 30 minutes ==> 696.0 calories\n",
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education