Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please give me the code that will successfully run (exactly what will show in the coding space) No images please (text form only) Thank you!

Please give me the code that will successfully run (exactly what will show in the coding space) No images please (text form only) Thank you!

image text in transcribed
1.24 LAB: Expression for calories burned during workout The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (source): Calories = ( (Age x 0.2757) + (Weight x 0.03295) + (Heart Rate x 1.0781) - 75.4991 ) x Time / 8.368 Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output the average calories burned for a person. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print ( ' Calories: { : .2f} calories ' . format (calories ) ) Ex: If the input is: 49 155 148 60 zyBooks . Calories: 736.21 calories 554868.3744824.qx3zay7 LAB ACTIVITY 1.24.1: LAB: Expression for calories burned during workout 0 / 10 main.py 1 . Calories = ((Age x 0.2757) + (Weight x 0.03295) + (Heart Rate x 1.0781) 2 3 Age=float ( input ( ) ) 4 Weight=float (input ( ) ) 5 Heart_Rate=float ( input ( ) ) 6 Time=float ( input ( ) ) 7 ralanine flant/ lan fl a 27571 , Allnight fl a asanel , / Wnant Data f1 1 0 zyBooks main.py "Calories = ( (Age x 0.2757) + (Weight x 0.03295) + (Heart Rate x 1.0781) 2 3 Age=float ( input ( ) ) 4 Weight=float ( input ( ) ) 5 Heart_Rate=float ( input ( ) ) 6 Time=float ( input ( ) ) 8 Calories = float( (Age fl o. 2757) + (Weight fl 0.03295) + (Heart_Rate fl 1.0 9 print ( 'Calories: {: .2f} calories' . format (Calories) ) 10 zyBooks . Develop mode Submit mode Run your program as often as you'd like, before submitting input values in the first box, then click Run program and o second box. Enter program input (optional) If your code requires input values, provide them here. Run program Input (from above) main.py (Your program) O

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions