Question

Problem C: Walking off the Calories Suppose a person can burn off the 150 calories from...

Problem C: Walking off the Calories

Suppose a person can burn off the 150 calories from a beer by walking for 40 minutes at a moderate pace of 3 miles per hour. Based on the number of beers the user consumes each day, as well as the number of minutes he or she walks each day, determine how much longer the user must walk (both in minutes as well as in hours) in one year to counter the rest of the beer calories consumed. Also display the total amount of time (both in minutes as well as in hours) that must be spent walking in order to burn all the calories, as well as the average amount of time (both in minutes as well as in hours) that would have to be spent walking each day in order to achieve that goal. You may once again assume that there are 365 days in a year (ignoring leap years).

All values should be output with 2 digits of precision after the decimal.

Input Specification

1. The number of 12-ounce beers consumed each day is a non-negative real number.

2. The number of minutes spent walking each day is a non-negative real number.

3. Both of these values will be such that the user will have to walk more to counteract the effect of the beer, thus, mathematically, the computation for how much extra time is needed for walking will never be a negative number.

Output Sample

Here are two sample outputs of running the program. Note that this test is NOT a comprehensive test. You should test your program with different data than is shown here based on the specifications given. The user input is given in italics while the program output is in bold.

Sample Run #1

On average, how many beers will you consume each day? 1.2

On average, how many minutes do you spend walking each day? 0.0

You will need to walk 17520.00 more minutes (292.00 hours) to burn all those calories, for a total of 17520.00 minutes (292.00 hours) of walking this year.

That amounts to 48.00 minutes (0.80 hours) of walking every day.

Sample Run #2

On average, how many beers will you consume each day? 2.5

On average, how many minutes do you spend walking each day? 60.0

You will need to walk 14600.00 more minutes (243.33 hours) to burn all those calories, for a total of 36500.00 minutes (608.33 hours) of walking this year.

That amounts to 100 minutes (1.66 hours) of walking every day.

( i am having trouble with the programming code for this problem)

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Problem C: Walking off the Calories Suppose a person can burn off the 150 calories from...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Please write a Java program that ask the user how many beers he or she expects...

    Please write a Java program that ask the user how many beers he or she expects to consume each day, on average, as well as the average amount of money he or she spends on a single 12-ounce can of beer. Studies have shown that, on average, someone who consumes a single 12-ounce can of beer every day without compensating for the calorie intake through diet modifications or extra exercise, will gain approximately 15 pounds in one year. You can...

  • Francesca wants to start exercising to burn at least 1800 extra calories pet week, but she...

    Francesca wants to start exercising to burn at least 1800 extra calories pet week, but she does not have much spare time for exercise According to a website, she can burn an average of 3 5 minute walking, 5 calories per minute cycling, and 10 calories per minute swimming She would like her total time walking and cycling to be at least 3 tmes as long like to walk at least 50 minutes per week How much time should she...

  • Time to Burn Calories Assume you are afiness trainer and would lhke to help your clients better c...

    Need the VBA code for excel Time to Burn Calories Assume you are afiness trainer and would lhke to help your clients better calculate the number of calories they burn on your treadmill Your treadmill burns 89 calories per minute. You desire to create a program which asks the person to enter the desired number of calories to burn and output the number of minures required on your treadmill Note: They might burn slightly more calories than their goal unless...

  • please help part one) Calories Burned Running on a particular-treadmill you burn 3.9 calories per minute....

    please help part one) Calories Burned Running on a particular-treadmill you burn 3.9 calories per minute. Design a pro- gram that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes. 3 part two) Sum of Numbers Design a program with a loop that asks the user to enter a series of positive num bers. The user should enter a negative number to signal the end of the series. After all the...

  • How many calories do you think you burn or expend with 60 minutes of walking on...

    How many calories do you think you burn or expend with 60 minutes of walking on the treadmill? An article that appeared in the American Journal of Men’s Health (2010) presented the results of a study conducted by researchers Harris and George, whose objective was to evaluate how accurately men can estimate their energy expenditure (EE) as measured in kilocalories (kcal). 82 normal-weight and overweight male participants, ages 21–45 years, were recruited from a large, urban university in South Florida....

  • An average adult human requires 2,200 kilocalories (kcal) of energy per day (however, this number can...

    An average adult human requires 2,200 kilocalories (kcal) of energy per day (however, this number can vary based on age, gender, and weight). Suppose your diet provides an average of 2,300 kcal per day. How many hours per week would you have to walk to burn off the extra 100 Calories consumed per day? EXPLAIN IN DETAIL

  • How many calories do you think you burn or expend with 60 minutes of walking on...

    How many calories do you think you burn or expend with 60 minutes of walking on the treadmill? An article that appeared in the American Journal of Men's Health (2010) presented the results of a study conducted by researchers Harris and George, whose objective was to evaluate how accurately men can estimate their energy expenditure (EE) as measured in kilocalories (kcal). 100 normal-weight and overweight male participants, ages 21-45 years, were recruited from a large, urban university in South Florida....

  • Score: 0 of 1 pt 5 of 5 (4 complete) HW Score: 70%, 3.5 of 5...

    Score: 0 of 1 pt 5 of 5 (4 complete) HW Score: 70%, 3.5 of 5 p Life Sci 4.3.27 EQuestion Help Francesca wants to start exercising to burn at least 1200 extra calories per week, but she does not have much spare time for exercise. According to a website, she can burn an average of 2.5 calories per minute walking, 4 calories per minute cycling, and 8 calories per minute swimming. She would like her total time walking and...

  • This scatterplot shows data on a sample of 20 toddlers observed over several months at a...

    This scatterplot shows data on a sample of 20 toddlers observed over several months at a nursery school. Can you predict how many calories a child consumes based on how long they remain at the lunch table? “Time” is the average number of minutes a child spent at a table when lunch was served. “Calories” is the average number of calories consumed by the child during lunch. The least squares regression equation is: calories = 560.65125 – 3.0770733 × time....

  • Problem 1.A should read "How many calories is consumed between 4 A.M. and 9 A.M?" not...

    Problem 1.A should read "How many calories is consumed between 4 A.M. and 9 A.M?" not " How much water is consumed between 4 A.M. and 9 A.M?" 1. A (10 points) On a typical day, a person should consume calories at the rate of c(t) 50 + 24V - 2t2 calories per hour, where is the number of hours past midnight. How much water is consumed between 4 A.M. and 9 A.M.? Please state the units on your answer...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT