Question: 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
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
Get step-by-step solutions from verified subject matter experts
