The following equation estimates the average calories burned for a person when exercising, which is based...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 x 0.03295) + (Heart Rate x 1.0781)-75.4991) x 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: printf("%0.21f", yourValue); Ex: If the input is: 49 155 148 60 the output is: Calories: 736.21 calories 467366342729637 LAB ACTIVITY 1 #include <stdio.h> 2 3 int main(void) { 456700 O 8 3.16.1: LAB: Expression for calories burned during workout 9 /* Type your code here. */ return 0; main.c 0/10 Load default template... 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 x 0.03295) + (Heart Rate x 1.0781)-75.4991) x 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: printf("%0.21f", yourValue); Ex: If the input is: 49 155 148 60 the output is: Calories: 736.21 calories 467366342729637 LAB ACTIVITY 1 #include <stdio.h> 2 3 int main(void) { 456700 O 8 3.16.1: LAB: Expression for calories burned during workout 9 /* Type your code here. */ return 0; main.c 0/10 Load default template...
Expert Answer:
Answer rating: 100% (QA)
1 include 2 3 int main 4 8 9 10 11 12 13 14 15 16 17 18 19 20 21 float aw... View the full answer
Related Book For
Introduction To Statistical Investigations
ISBN: 9781118172148
1st Edition
Authors: Beth L.Chance, George W.Cobb, Allan J.Rossman Nathan Tintle, Todd Swanson Soma Roy
Posted Date:
Students also viewed these programming questions
-
After graduating from college, Melissa Malone landed a position with Orchard Creek, one of the finest children's boutiques in the Boston area. Three years ago, Melissa was promoted to Assistant...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Start of Payroll Project 7-3a October 9, 20-- No. 1 The first payroll in October covered the two workweeks that ended on September 26 and October 3. This payroll transaction has been entered for you...
-
Calculate the standard entropy change for the following reactions at 25C. Comment on the sign of r S. (a) 2 Al(s) + 3 Cl 2 (g) 2 AlCl 3 (s) (b) 2 CH 3 OH() + 3 O 2 (g) 2 CO 2 (g) + 4 H 2 O(g)
-
A film of oil of index of refraction n = 1.45 floats on water (n = 1.33). When illuminated with white light at normal incidence, light of wavelengths 700 and 500 nm is predominant in the reflected...
-
Mallory plc has two different bonds currently outstanding. Bond M has a face value of 20,000 and matures in 20 years. The bond makes no payments for the first 6 years, then pays 1,200 every 6 months...
-
How are computers and digital devices used in cybercrime?
-
The December cash records of Dunlap Insurance follow: Dunlap's Cash account shows a balance of $16,740 at December 31. On December 31, Dunlap Insurance received the following bank statement:...
-
A Joe plays football for his high school team. He is 17 years old, 6 feet tall and weighs 180 pounds. His coach has recommended that he gain 10 pounds over the next six months, but not at the expense...
-
1. What is your assessment of the financial performance of Nelson Nurseries? 2. Do you agree with Christine Barton?s accounts-payable policy? 3. What explains the erosion of the cash balance? 4. What...
-
Perform the operation indicated, then place the answer in the prop descending powers of m. (5m^(3)+3mn^(2))+(-7m^(2)n+mn^(2)-n^(3))-(mn^(2)+2m^(3))
-
1. Download ComputeMeanDeviation.java from M5 Methods module in folio. 2. Modify the program by adding the following two methods: public static double mean (int boundary, int n) public static double...
-
1. Riker Corp has recently paid a dividend of $ 5.2 per share, and the dividends are expected to grow at a constant rate of 3.4 percent per year indefinitely. a. What is the stock value today if the...
-
In a school event, a catering company was serving pizza to 764 people. They served 2 slices for each child and 5 slices for each adult. If the company ordered a total of 2,992 slices of pizza, how...
-
Firm X has 6 . 3 7 percent coupon bonds on the market with 1 3 years to maturity. The bonds make semiannual payments and currently sell for 1 0 2 . 6 3 percent of par. What is the current yield on X...
-
In a cross between a black and a white guinea pig, all members of F1 generation are black. The F2 is made up of 10 black and 3 white guinea pigs. a) Using the correct gene symbol, diagram this cross...
-
The following data from the just completed year are taken from the accounting records of Mason Company: Sales $ 658,000 Direct labor cost $ 87,000 Raw material purchases $ 134,000 Selling expenses $...
-
A 6-lb shell moving with a velocity ?? v0k explodes at point D into three fragments which hit the vertical wall at the points indicated. Fragments A, B, and C hit the wall 0.010 s, 0.018 s, and 0.012...
-
Based on an October 2013 Gallup poll, a 95% confidence interval for the proportion of American adults that think a degree from a well-respected university is more important for a young person to...
-
Reconsider the previous exercise. Conduct a theory-based analysis, including a check of validity conditions, and summarize your conclusion.
-
Evaluate the strength of evidence for the hypotheses in the previous question. a. Find the p-value for the hypotheses in the previous question using a simulation-based approach. b. Based on the...
-
What is an off-by-one error?
-
Will the universality of management continue to be true in the future? Why or why not?
-
Describe what a manager does. How does the work of managers differ from that of nonmanagerial employees?
Study smarter with the SolutionInn App