answer.
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]
2 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:
Andreyy892 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]2 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 the binary odometer show about representing large numbers​
Gelneren [198K]

Answer and Explanation:

The binary odometer represents the large number to judge that what happened when there is a large number that gets too large

Here we visit the level 2 of the binary odometer widget in the chapter of Code studio

This represents a widget that reproduced an odometer of a car in which the tracking of a device could be known that how much far the car is driven with respect to the miles or kilometers

7 0
2 years ago
Fill in the blanks to make the print_prime_factors function print all the prime factors of a number prime factor is a number tha
fomenos

The answer & explanation for this question is given in the attachment below.

3 0
2 years ago
Your computer has a quad-core processor that supports multithreading installed. given that the system is running windows, how ca
AlexFokin [52]
By using cpu-z or the performance ran in taskmgr
8 0
2 years ago
Carl knows that water moves through different kinds of soil at different rates. How easily water moves through a soil is known a
Serggg [28]

Answer:

To get the same same results from all pots "amount of water should be same" for all pots.

Explanation:

As Carl want to measure and compare the amount of water that flows in pot in one minute from all all pots. He should keep the amount of water constant for all pots to get the desired results.

6 0
2 years ago
B. Write a function that takes one double parameter, and returns a char. The parameter represents a grade, and the char represen
9966 [12]

Answer:

#include <iostream>

#include <cstdlib>

using namespace std;

char grade(double marks){

   if(marks>=90)

   {

       return 'A';

   }

   else if (marks >=80 && marks<90)

   {

       return 'B';

   }

   

   else if (marks >=70 && marks<80)

   {

       return 'C';

   }

   

   else if (marks >=60 && marks<70)

   {

       return 'D';

   }

     else if ( marks<60)

   {

       return 'F';

   }

}

int main()

{

   double marks;

cout <<"Ener marks";

cin >>marks;

char grd=grade(marks);

cout<<"Grae is "<<grd;

return 0;

}

Explanation:

Take input from user for grades in double type variable. Write function grade that takes a parameter of type double as input. Inside grade function write if statements defining ranges for the grades. Which if statement s true for given marks it returns grade value.

In main declare a variable grd and store function returned value in it.

3 0
2 years ago
Other questions:
  • Problem statement: Using loop, write a program that will ask the user to enter a character for left or right. Then, the user wil
    13·1 answer
  • Which are examples of intrapersonal goals? Check all that apply. Lea plans to finish her next project before the due date. Erick
    12·2 answers
  • In cell q9 enter a formula using the countif function and structured references to count the number of staff members who have pa
    9·1 answer
  • Which selections are possible for controlling the start time of audio playback? Check all that apply. Automatic Rewind when done
    10·1 answer
  • The area of a square is stored in a double variable named area. write an expression whose value is length of the diagonal of the
    11·1 answer
  • Which of the following option is correct about HCatalog?
    14·1 answer
  • Write a program that reads students’ names followed by their test scores. The program should output each student’s name followed
    13·1 answer
  • Which of the following image file formats uses lossy file compression?
    7·1 answer
  • (choose one) Which is the proper means to decrement the integer variable, myScore, by one?
    15·1 answer
  • It is also called teleconferencing or web conferencing,which is an online meeting wherein two or more people can see,hear,and ta
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!