Question: This is a Java program. Please only include the elements asked for in this project, DO NOT use loops, case structure or create any methods.

This is a Java program. Please only include the elements asked for in this project, DO NOT use loops, case structure or create any methods.

Problem Statement:

Write a program that simulates a simple Calculator program. The program will display menu choices to the user to Add, Subtract, Multiply and Divide. The program will prompt the user to make a selection from the choices and get their choice into the program. The program will use a nested if.else (selection control structure) to determine the users menu choice. Prompt the user to enter two numbers, perform the appropriate computation and display the results on the screen (you can use dialog boxes if you want). If the user inputs an invalid menu choice, the program will display the users entry with an error message.

Output on Screen:

Calculator Program

----------------------------------------------------------------------

A: Add

B: Subtract

C: Multiply

D: Divide

-----------------------------------------------------------------------

Please make a selection: A

Please enter the first number: 10

Please enter the second number: 15

10 + 15 = 25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!