Question: Write a program in c# that acts as a calculator for integer numbers. The program should... Allow the user to add, subtract, multiply or divide
Write a program in c# that acts as a calculator for integer numbers. The program should... Allow the user to add, subtract, multiply or divide two integer values entered by the user Allow the user to perform as many of these arithmetic operations as they wish. This means the user should be able to perform more than one arithmetic operation. The user should be able to exit the program. Should not crash if the user attempts to divide by zero. While you must protect against division by zero, you do not need to protect against the user entering an invalid numerical value (e.g., entering "boom" for the first number.) We'll learn how to solve invalid input later In this project, we are going to rewrite our integer calculator in program c#. This time we'll use methods to make our code more streamlined and easier to read. And yes, this means the instructor will be looking at your source code very closely this week! This assignment is a bit odd in that the user requirements are the same as for last week's integer calculator. The new requirements are all internal to your code (i.e., invisible to the user.) We're leaving the decision about what methods to add to your program up to you. We want you to think about which methods make sense to add. Do they make your code easier to understand? Or, do they contain code that is used in multiple places in your program? At a minimum, you must implement and use... A method that takes (and uses) a parameter A method that returns a value (non-void return type).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
