2. In this part of the assignment, you are required to create a separate C# Console
Application project. The project name should be A3< first and last Name initials of
everyone in your group>>P2. For example, a student with team members John Smith, Bill
Anderson would name their project A3JSBAP2.
Write a C# (console) program to create an interface that acts as a simple four number
calculator. Your program should continue doing calculations until it is closed or exited.
Instead of a Graphical User Interface (GUI) keypad, this calculator will use console input
to accept the four numbers to be used in the calculation. This calculator needs to prompt
the user for ONE selection of any of these simple math operators: plus, multiply, minus
or divide.
Five (5) inputs will need to be prompted:
1. Selected mathematical operation, (1-Add, 2-Multiply, 3-Subtract, 4-Divide)
2. Allow the user to enter 1,2,3,4 number.
3. Enter numbers that the User has said they were going to Enter,
Example:
Menu: Conestoga's PROG1925 Calculator
1. Add
2. Subtract
3. Multiply
4. Divide
User choses 1.
How Many numbers do you wish to Calculate?
Users Enter's 4.......
The program would add all numbers
Therefore...
The output will be displayed when the mathematical operation is known, and the inputs
(numbers) are entered.
• If the user selects addition (plus) add all numbers together.
• If the user selects subtraction only subtract(minus) each number as entered.
• If the user selects division (divide) allow only 2 numbers to be entered.
• If the user selects multiplication (multiply), multiply each number as entered.
The output will not be editable by the user. After the calculation is executed, the
application will display error messages (or other status message) and can be as you
deem appropriate.
• The program only needs to run once then exit
• This calculator will handle all errors using try/catch statements. The error message
output should display at least 3 different types of error (or status) messages,
depending on what the user has done incorrectly. Your program should be able to
catch all possible errors the user may do; it should not crash.