Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in Java Assume that you are a chef in a restaurant. You are going to serve a very hot plate to a customer. If it

in Javaimage text in transcribedimage text in transcribed

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, cooling time will be 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 down. 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 cooled down. 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 cooled down. If the customer orders a hot drink, serve it immediately. SAMPLE OUTPUT 1 Select order type: 1. Meat 2. Vegetable 3. Drink 4. Bakery 1 197 cooled 195 cooled 193 cooled 191 cooled 189 cooled 187 cooled 185 cooled 183 cooled 181 cooled 879 cooled $77 cooled $75 cooled 73 cooled 171 cooled 469 cooled 467 cooled 165 cooled 164 cooled 163 cooled 162 cooled 461 cooled $60 cooled 159 cooled 158 cooled 457 cooled 156 cooled 155 cooled 154 cooled 53 cooled 152 cooled 151 cooled 150 cooled 649 cooled Here is your meat SAMPLE OUTPUT 2 Select order type: 1. Meat 2. Vegetable 3. Drink 4. Bakery 3 Here is your drink

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions