Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this part of the assignment, you will write a program that, when given a meal ( either Breakfast, Lunch, or Dinner ) , a

In this part of the assignment, you will write a program that, when given a meal (either "Breakfast", "Lunch", or "Dinner"), a fullness level (from 1 to 10), and whether or not your computer is on a diet (True or False), will print one of the following 4 possible responses:
If your computer is eating eicher Lunch or Dinner, has a fullness level of 3.5 or lower, and is not on a diet, it will print: Yes, please!
Otherwise, if your computer is not eating Breakfast and has a fullness level of 6.0 or lower, it will print: Just an apple for me!
Otherwise, if your computer is eating Breakfast, it will print: Ice cream isn't for breakfast...
Otherwise, it will print: None for me, thanks!
When the program is executed, it will ask the user to enter a meal, a fullness level, and whether or not your computer is on a diet, and it will store them into 3 variables: meal, fullness_level, and is_on_diet. This is done for you in the code we have provided at the top of the program (between the two ### DO NOT MODIFY ### comments). Below the # YOUR CODE HERE comment, you will write the code to print the corresponding response out of the above 4 possible response.
image text in transcribed

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

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions