Menu to be output for the User SCREEN *** CACULATOR *** -1 BINARY OPERATIONS: -2 UNIARY OPERATIONS: ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE! If the user chooses 1 for Binary_Operations: a sub-menu of 5 choices will appear as shown below (addition – subtraction – multiplication – division - reminder): SCREEN ****** CACULATOR *** 1- BINARY OPERATIONS: 2- UNIARY OPERATIONS: Press 1 for Binary operations ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE! 1 1- ADDITION: SUBTRACTATION: 2- 3- MULTIPLICATION: 4- DIVISION: 5- REMINDER: Here is an example, showing the user chooses Addition by Pressing 1 and then 2 numbers are input and the result is shown as follows: SCREEN *** CACULATOR *** 1- BINARY OPERATIONS: 2- UNIARY OPERATIONS: ENTER A NUMBER FOR YOUR CHOICE FOR THE MENU ABOVE ! 1 1- ADDITION: 2- SUBTRACTATION: 3- MULTIPLICATION: 4- DIVISION: Press 1 for 5- REMINDER: addition 1 ENTER TWO NUMBERS: 2 Enter 2 3 numbers THE RESULT IS: 5.0

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

I need to make sure for the answer 

Can you explain to me

Menu to be output for the User
SCREEN
CACULATOR ***
BINARY OPERATIONS:
***
-1
-2
UNIARY OPERATIONS:
ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE!
If the user chooses 1 for Binary Operations: a sub-menu of 5 choices will appear as shown
below (addition – subtraction – multiplication – division - reminder):
SCREEN
****** CACULATOR ***
1-
BINARY OPERATIONS:
2-
UNIARY OPERATIONS:
ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE!
Press 1 for
Binary
operations
1
1-
ADDITION:
2-
SUBTRACTATION:
3-
MULTIPLICATION:
4-
DIVISION:
5-
REMINDER:
Here is an example, showing the user chooses Addition by Pressing 1 and then 2 numbers
are input and the result is shown as follows:
SCREEN
***
CACULATOR ***
1-
BINARY OPERATIONS:
2-
UNIARY OPERATIONS:
ENTER A NUMBER FOR YOUR CHOICE FOR THE MENU ABOVE !
1
1-
ADDITION:
2-
SUBTRACTATION:
3-
MULTIPLICATION:
4-
DIVISION:
Press 1 for
5-
REMINDER:
addition
ENTER TWO NUMBERS:
2
Enter 2
3
numbers
THE RESULT IS: 5.0
Transcribed Image Text:Menu to be output for the User SCREEN CACULATOR *** BINARY OPERATIONS: *** -1 -2 UNIARY OPERATIONS: ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE! If the user chooses 1 for Binary Operations: a sub-menu of 5 choices will appear as shown below (addition – subtraction – multiplication – division - reminder): SCREEN ****** CACULATOR *** 1- BINARY OPERATIONS: 2- UNIARY OPERATIONS: ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE! Press 1 for Binary operations 1 1- ADDITION: 2- SUBTRACTATION: 3- MULTIPLICATION: 4- DIVISION: 5- REMINDER: Here is an example, showing the user chooses Addition by Pressing 1 and then 2 numbers are input and the result is shown as follows: SCREEN *** CACULATOR *** 1- BINARY OPERATIONS: 2- UNIARY OPERATIONS: ENTER A NUMBER FOR YOUR CHOICE FOR THE MENU ABOVE ! 1 1- ADDITION: 2- SUBTRACTATION: 3- MULTIPLICATION: 4- DIVISION: Press 1 for 5- REMINDER: addition ENTER TWO NUMBERS: 2 Enter 2 3 numbers THE RESULT IS: 5.0
ENTER TW O NUMBERS:
2
Enter 2
3
numbers
THE RESULT IS: 5.0
If the user chooses 2 for Unary Operations: a sub-menu of 4 choices will appear as shown
below (square root –
number decrement (minus one from the number):
number squared – number increment (add one to the number) –
SCREEN
***
CACULATOR ***
1-
BINARY OPERATIONS:
2-
UNIARY OPERATIONS:
Press 1 for
Unary
operations
ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE!
2
SQUARE-ROOT:
NUMBER SQUARED:
1-
2-
3-
NUMBER INCREMENT:
4-
NUMBER DECREMENT:
Here is an example, showing the user chooses Addition by Pressing 3 and then 1 number is
input and the result is shown as follows:
SCREEN
***
CACULATOR ***
1-
BINARY OPERATIONS:
2-
UNIARY OPERATIONS:
ENTER A NUMBER FOR YOUR CHOICE FOR THE MENU ABOVE !
2
SQUARE-ROOT:
NUMBER SQUARED:
1-
2-
3-
NUMBER INCREMENT:
4-
NUMBER DECREMENT:
Press 3 for
3
increment
ENTER A NUMBER:
Enter a
number
THE RESULT IS: 6.0
Helpful Links:
HELP
Scanner Class: Sum of Two Numbers in Java User Input (inlarn.com)
If-else: Java If... Else (w3schools.com)
Switch-case: Tutorial At Home
While loop: Java while and do...while Loop (programiz.com)
BONUS: REPEATING an unknown number of times until a
BONUS
specific value is entered.
Then, the menu is repeated many times to the user to choose
other operations until “-1" is pressed to stop the program.
Transcribed Image Text:ENTER TW O NUMBERS: 2 Enter 2 3 numbers THE RESULT IS: 5.0 If the user chooses 2 for Unary Operations: a sub-menu of 4 choices will appear as shown below (square root – number decrement (minus one from the number): number squared – number increment (add one to the number) – SCREEN *** CACULATOR *** 1- BINARY OPERATIONS: 2- UNIARY OPERATIONS: Press 1 for Unary operations ENTER A NUMBER FOR YOUR CHOICE FROM THE MENU ABOVE! 2 SQUARE-ROOT: NUMBER SQUARED: 1- 2- 3- NUMBER INCREMENT: 4- NUMBER DECREMENT: Here is an example, showing the user chooses Addition by Pressing 3 and then 1 number is input and the result is shown as follows: SCREEN *** CACULATOR *** 1- BINARY OPERATIONS: 2- UNIARY OPERATIONS: ENTER A NUMBER FOR YOUR CHOICE FOR THE MENU ABOVE ! 2 SQUARE-ROOT: NUMBER SQUARED: 1- 2- 3- NUMBER INCREMENT: 4- NUMBER DECREMENT: Press 3 for 3 increment ENTER A NUMBER: Enter a number THE RESULT IS: 6.0 Helpful Links: HELP Scanner Class: Sum of Two Numbers in Java User Input (inlarn.com) If-else: Java If... Else (w3schools.com) Switch-case: Tutorial At Home While loop: Java while and do...while Loop (programiz.com) BONUS: REPEATING an unknown number of times until a BONUS specific value is entered. Then, the menu is repeated many times to the user to choose other operations until “-1" is pressed to stop the program.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
ListBox
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education