Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

If a moderately active person cuts their calorie intake by 500 calories a day, they can typically lose 4 pounds a month. Write a menu-driven

image text in transcribed
If a moderately active person cuts their calorie intake by 500 calories a day, they can typically lose 4 pounds a month. Write a menu-driven interface program with the following options: 1. Display "10 ways to cut 500 calories" guideline. 2. Generate next semester expected weight table. 3. Quit. If the user chooses 1, the following guidelines will be displayed: Try these 10 ways to cut 500 calories every day. Swap you snack. Cut one high-calorie treat. DO NOT drink your calories. Skip seconds. Make low calorie substitutions. Ask for a doggie bag. Just say "no" to fried food. Build a thinner pizza. Use a smaller plate. Avoid alcohol. Source: US National Library of Medicine If the user chooses 2, the program will prompt for the starting weight and generate a table showing what the expected weight will be at the end of each month, for the next six months after starting following the guidelines. If the user chooses 3, the program will end. The menu will be displayed again until the user chooses 3. Notes Input Validation Make sure to validate menu options entered by the user. Do not accept weights lower than 100 pounds. If an invalid weight is entered, display error message and prompt for weight again until valid. Implementation Requirement Must use a loop to generate the table

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

The Unicef was awarded the Nobel peace prize in the year........?

Answered: 1 week ago

Question

Who heads the council of ministers?

Answered: 1 week ago

Question

Who Coined and used the ward non aligned first?

Answered: 1 week ago

Question

Formation of forward bloc by subha bose was .....?

Answered: 1 week ago

Question

The S.I. unit of change is........?

Answered: 1 week ago