Answered step by step
Verified Expert Solution
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 : 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
The output for a woman note that only the last line has a floatingpoint value that's rounded to decimal places:
Age years
Weight pounds
Heart rate
Time minutes
Calories burned
Part : Write a function
Define a function: calculatecaloriewoman
make sure that the name is exactly as shown
Use the formula from the Calorie expenditure in Section
II Women: Calories Age Weight Heart Rate Time
Update the function documentation
return the computed value do not round the result inside the function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started