Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1: Write a function Define a function: calculate_calorie_woman() - make sure that the name is exactly as shown - Use the formula from the

image text in transcribed
Part 1: 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: If Women: Calories =[( Age 0.074)( Weight 0.05741)+( Hetart Rate 0.4472)20.4022] Time /4.184 - Update the function documentation, and return the computed value (do not round the result inside the function). Part 2: 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 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

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

Prepare and properly label figures and tables for written reports.

Answered: 1 week ago