The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (source)

Homework Help: Questions and Answers: The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (source):

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 0.03295 + Heart Rate × 1.0781-75.4991) × (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 (f’ Calories: {calories:.2f} calories’)
Ex: If the input is: 49 155 148 60
then the output is:
Calories: 736.21 calories

Answer:

To solve the problem step by step, let’s break it down. The task is to compute the average calories burned based on the provided formula:

Calories = ((Age×0.2757) + (Weight×0.03295) + (HeartRate×1.0781) − 75.4991) × (Time/8.368)

Steps:

  • Input: Get inputs for age, weight, heart rate, and time.
  • Apply Formula: Plug these values into the formula to calculate the calories burned.
  • Formatting: Ensure the output is displayed with two decimal places.

Python Code:

Example:

Input:

49 155 148 60

Output:

Calories: 736.21 calories

Explanation:

  • Age: 49
  • Weight: 155 pounds
  • Heart Rate: 148 bpm
  • Time: 60 minutes

The formula is applied as:

Calories = ((49×0.2757) + (155×0.03295) + (148×1.0781) − 75.4991) × (608.368)

This results in approximately 736.21 calories.

Learn More: Homework Help

Q. Select the correct answer from each drop-down menu. Aslam wants to create multiple worksheet containing common formatting styles for his team members. Which file extension helps him to save these worksheets?

Q. Julian is working on a project that requires regular updates on the amount of work completed and deadlines achieved in a day. Julian and all other team members have access to a shared workbook that the team manager created. Which specific operation can Julian and other team members perform on the shared workbook?

Q. Select the correct answer. Jeff has created a table to calculate the cost of raw materials that he purchases monthly. Cell A2 shows the fixed cost of the raw material (3). Column D lists the quantity (number of units) that Jeff purchased each month. What formula can Jeff use in E2 to calculate the monthly cost of the raw material that he can copy to all the rows below?

Q. Why were magnetic tapes used to replace punch cards in Second Generation computers?

Q. Which answer choice does NOT describe a responsibility of a safe social media user?

Q. How do individual diversity and mentoring intersect with technology? How can an organization use technology to be more inclusive? Use your text or another outside resource to support your response. You must cite at minimum one outside source at the end of your initial posting.

Q. A student is working on a research project that analyzes historical temperatures. They want to perform a statistical analysis. What component of an information system would they use to organize the temperatures that they collect?

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

    Comments