Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(16 points) Assume that you are a chef in a restaurant. You are going to serve a very hot plate to a customer. If it

image text in transcribed

image text in transcribed

(16 points) Assume that you are a chef in a restaurant. You are going to serve a very hot plate to a customer. If it is too hot or too cold, the customer may complain about it. Write a program that calculates the cooling time of a plate. Also, get the type of this food from the user as well (Meat, Vegetable, Bakery Products or Hot Drink), according to this type different. According to the given inputs, calculate and display the recommended serving time. You should come up with default cooling times from each type of food. If the customer orders a meat dish, it is going to cool down %3per minite. You need to serve it when it is %50 cooled dow If the customer orders a vegetable dish, it is going to cool down %4 per minite. You need to serve it when it is %60 coolec If the customer orders a bakery product, it is going to cool down %5 per minite. You need to serve it when it is %70 coole If the customer orders a hot drink, serve it immediately. SAMPLE OUTPUT 1 orders a hot drink, serve it immediate SAMPLE OUTPUT 1 Select order type: 1. Meat 2. Vegetable 3. Drink 4. Bakery 1 %97 cooled %95 cooled %93 cooled %91 cooled %89 cooled %87 cooled %85 cooled %83 cooled %81 cooled %79 cooled %77 cooled %75 cooled %73 cooled %71 cooled

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

Explain the importance of preliminary screening.

Answered: 1 week ago

Question

4. What advice would you give to Carol Sullivan-Diaz?

Answered: 1 week ago