
Write a Java program correctly that will prompt for and read 3 integer values guests, tables, and meals entered by the user. Determine the message(s) to display based on the specifications that follow. Note, there can be more than one category the user input satisfies. Be sure to use the same format and wording as in the sample runs in the table below.
Using a combination of at most 3 if, else if or else to fulfill the requirements described below.
1. If the number of meals is greater than the number of tables and the number of guests is smaller than the number of meals, display Seems all guests will be served.
2. If the number of guests is greater than the number of tables and the number of meals is smaller than number of
guests display the message Seems that not all the guests will be served.
3. If the number of guests is smaller than the number of meals and the number of tables is greater than the number of meals, display the message Seems that some tables will be empty.

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

- Write a C program that compute the perimeter of Circle, Rectangle, Triangle and Square. The program asks the user to specify the shape as follows: C for Circle, S for Square, R for Rectangle and T for Triangle and then it reads the required value to compute the perimeter for that specified shape. Note: the perimeter for the shapes:????l? = ? × ?????? × ?S????? = ? × ????????????? = ? × (????? + ??????) ???????? = ????? + ????? + ????3arrow_forwardCan you give me two ways to do itarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





