Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to make a pseudocode for this and I'm lost: Assume that the McHambergerTM place from above found out that the McGrease meal caused

I need to make a pseudocode for this and I'm lost:

Assume that the McHambergerTM place from above found out that the McGrease meal caused excessive weight gain. In order to help their reputation, they are now offering a program that determines how much weight a person can gain or lose in a given amount of time. Assume that the average person can eat 2,500 calories per day without gaining or losing weight. Your task is to write a program that asks the user for the number of calories they plan on eating per day as well as the number of days they will do that. It then displays the total weight the user will gain or lose. Note: there are 3,600 calories in one pound. Of course, legally, consult your physician about any dietary changes you may be considering

 Sample Output: 

Enter the number of calories you will consume per day: 2600 Enter the number of days you will eat this much: 36 Weight change is 1.0 lbs

 Sample Output #2: 

Enter the number of calories you will consume per day: 4000 Enter the number of days you will eat this much: 365

Weight change is 152.0833 lbs Sample Output #3:

Enter the number of calories you will consume per day: 1000 Enter the number of days you will eat this much: 200 Weight change is -83.3333.0 lbs

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

Students also viewed these Databases questions