Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that you own a smart microwave. It can arrange the heating time on its own. Write a program that asks number of items that

Assume that you own a smart microwave. It can arrange the heating time on its own.

Write a program that asks number of items that the user wants to heat in this microwave.

Also, get the type of this food from the user as well (Meat, Vegetable or Bakery Products).

According to the given inputs, calculate and display the recommended heating time.

You should come up with default heating times from each type of food.

If the user wants to heat up just a single item, use the default heating time.

If the user wants to heat up just a two item, use %50 more than the default heating time.

If the user wants to heat up just a three item, use %75 more than the default heating time.

Heating more than three items at once is not recommended, so don't allow it.

The prompt messages for the user is entirely up to you. Sample outputs are just inserted here for you to understand the question better. You can and should develop your own solutions.

SAMPLE OUTPUT 1

what is the food type that you want to heat?

press 1 for meat

press 2 for vegetable

press 3 for bakery

3

how many item you have ?

2

calculating ....

you should heat your food 3 minutes

SAMPLE OUTPUT 2

what is the food type that you want to heat?

press 1 for meat

press 2 for vegetable

press 3 for bakery

1

how many item you have ?

5

not heating..sorry

The prompt messages for the user is entirely up to you. Sample outputs are just inserted here for you to understand the question better. You can and should develop your own solutions.

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago