The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (source): Calories= 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: printf("%0.21f", yourValue); Ex: If the input is: 49 155 148 60 the output is: (Age x 0.2757 + Weight x 0.03295 + Heart Rate x 1.0781-75.4991) > Time 8.368 Calories: 736.21 calories 1 #include 2 3 int main(void) { 4 5 6 7 8} /* Type your code here. */ return 0; main.c Load default template...
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
C Language
Write a
Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
printf("%0.2lf", yourValue);
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images