Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bean Burrito 357 calories Salad w/Dressing - 185 calories Milkshake 388 calories 26. Table 4.7 lists the Calorie contents of several foods. Running or walking

image text in transcribed
Bean Burrito 357 calories Salad w/Dressing - 185 calories Milkshake 388 calories 26. Table 4.7 lists the Calorie contents of several foods. Running or walking burns off about 100 Calories per mile. Write a C ++ program that requests three values from the user: the number of bean burritos, salads, and shakes consumed (in that order). The program should then display the number of miles that must be run or walked to burn off the Calories represented in that food. The program should run as follows (the user types in the 3221 ): Number of bean burritos, bowls of salad, and milkshakes eaten? 221 You ingested 1829 Calories You will have to run 18.29 miles to expend that much energy Observe that the result is a floating-point value, so you should use floating-point arithmetic to compute the answers for this

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

Step: 3

blur-text-image

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions