Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 : Write a program In your program, you will use the result that was returned from the function as part of the output

Part 1: Write a program
In your program, you will use the result that was returned from the function as part of the output of the main program.
Write a program to collect user information for each of the required parameters. Output ("echo") the collected information as shown below.
If the input is given as the following three integers and one float
22
110.5
65
60
The output for a woman (note that only the last line has a floating-point value that's rounded to 2 decimal places):
Age =22 years
Weight =110.5 pounds
Heart rate =65bpm
Time =60 minutes
Calories burned =56.64
Part 2: Write a function
Define a function: calculate_calorie_woman()
make sure that the name is exactly as shown
Use the formula from the Calorie expenditure in Section 2.3
II Women: Calories Age 0.074 Weight 0.05741 Heart Rate 0.4472 Time ?4.184
Update the function documentation
return the computed value (do not round the result inside the function).
image text in transcribed

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

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

LO.6 Describe the major characteristics of ACRS.

Answered: 1 week ago