Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

Mexican Food Calorie Chart
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Analyze the impact of labor unions on health care.

Answered: 1 week ago

Question

Assess three motivational theories as they apply to health care.

Answered: 1 week ago

Question

Discuss the history of U.S. labor unions.

Answered: 1 week ago