1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stich3 [128]
3 years ago
3

The following equations estimate the calories burned when exercising (source): Men: Calories = [(Age x 0.2017) — (Weight x 0.090

36) + (Heart Rate x 0.6309) — 55.0969] x Time / 4.184 Women: Calories = [(Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022] x Time / 4.184 Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes). Output calories burned for men and women. Ex: If the input is: 49 155 148 60 Then the output is: Men: 489.7772466539196 calories Women: 580.939531548757 calories
Computers and Technology
2 answers:
Andreyy893 years ago
5 0

Answer:

age_years = int(input())

weight_pounds = int(input())

heart_bpm = int(input())

time_seconds = int(input())

calories_woman = ((age_years * 0.074) - (weight_pounds * 0.05741) + (heart_bpm * 0.4472) - 20.4022 ) * time_seconds / 4.184

calories_man = ((age_years * 0.2017) + (weight_pounds * 0.09036) + (heart_bpm * 0.6309) - 55.0969 ) * time_seconds / 4.184

print('Women: {:.2f} calories'.format(calories_woman))

print('Men: {:.2f} calories'.format(calories_man))

Explanation:

IgorC [24]3 years ago
4 0

Answer:

Program is in C++ programming language.

Explanation:

Below is the code that will output the men and women burned calories.

NOTE: the comments will describe what is going on in the code.

 

#include <bits/stdc++.h>  

using namespace std;  

 

int main() {  

// Declaring all the required fields

int age;

int time;

int weight;

int heartRate;

// get input from user on command prompt, this will allow user to enter  

// every value seperated by space and in exact order

cin>>age>>weight>>heartRate>>time;

//calculating the men calories

double menResult = (((age * 0.2017) - (weight * 0.09036)  

+ (heartRate * 0.6309) )- 55.0969)* time / 4.184;

// calculating the women calories

double womenResult = ((age * 0.074) - (weight * 0.05741) + (heartRate * 0.4472) - 20.4022) * time / 4.184;

// Output men calories

cout <<"Men Calories :"<<menResult<<endl;

// Output women caloris  

cout <<"Women Calories :"<<womenResult;

  return 0;

}

You might be interested in
What does Intel mean in this phrase(collect all intel).
aksik [14]
<span>It's short for "intelligence". The phrase means 'collect all information'.</span>
6 0
3 years ago
Read 2 more answers
In which ways can governments manipulate the media? Select 3 options.
olga_2 [115]

The three ways by which government can manipulate the media are given below:

  • By prosecuting journalists.
  • By restricting the free press.
  • By damaging media credibility.

Thus, the correct options are A, D, and E.

<h3>What is Media?</h3>

In journalism, media may be defined as a means of mass communication that delivers information through newspapers, radio, television, magazines, and internet sources.

Government possesses immense control over media, but things are gradual changes and now media can be considered the fourth pillar of the nation.

Still, the government can manipulate the media according to the requirement of the nation, states, and community.

Therefore, it is well described above.

To learn more about Media, refer to the link:

brainly.com/question/3653791

#SPJ1

6 0
2 years ago
Using a linear search to find a value that is stored in the last element of an array of 20,000 elements, ________ element(s) mus
Klio2033 [76]

Using a linear search to find a value that is stored in the last element of an array of 20,000 elements, 20,000 element(s) must be compared.

6 0
2 years ago
You are studying for a test tomorrow. Your friends invite you to
lapo4ka [179]

Answer: C

Explanation:

7 0
3 years ago
How is the Internet Simulator similar to the Actual Internet? How is it different?
masya89 [10]
The Internet Simulator is a tool developed by Code.org for our new high school Computer Science Principles class. ... The Internet Simulator was designed to be used in a classroom with students working collaboratively in-person to solve problems.
4 0
4 years ago
Other questions:
  • What is a way to Procter your social security number and other sensitive information from identity theft
    9·1 answer
  • Whoever answers first gets lots of points
    14·2 answers
  • The parts of a memo are _____.
    9·2 answers
  • Apart from the OOPs concepts learned in this lesson, identify additional concepts and write an essay on their functions. Explain
    9·1 answer
  • Which of the following tools helps ensure your document will open in older versions of word
    13·1 answer
  • Which activity is the best example of a negative habit that may result from
    12·1 answer
  • It took her 9 more months but Marina has managed to save the full $725 plus more to cover fees to pay off the pay-day loan compa
    9·1 answer
  • GRAND THEFT AUTO 5 LOLLL
    15·2 answers
  • What are some of the opportunities that the stem program offers?
    15·1 answer
  • ¿Cuál es la capacidad pulmonar del hombre y la mujer?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!