Question
Hello I have this C++ lab. I really do not get the math through the program. Is there any tip you can provide with please.
Hello I have this C++ lab. I really do not get the math through the program. Is there any tip you can provide with please.
Running or walking burns out about 100 calories per mile. Write a program to calculate how many miles you would have to run or walk to burn off the burritos, salads, and shakes that you consume. Use the table shown below for the calculation.
Food | Calories |
Bean burritos | 357 |
Salad with dressing | 185 |
Milk shake | 388 |
The program would likely run as follows:
How many bean burritos, bowls of salad, and milk shakes did you consume? 3 2 1 You ingested 1829 calories. You will have to run 18.29 miles to expend that much energy.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started