Question: Create a console program using Visual Studio Create a Console App. - Name the class Calculator.cs (only one class). - In main() Enter First Operand(double),

Create a console program using Visual Studio 

Create a Console App.

- Name the class "Calculator.cs" (only one class).

- In main() Enter First Operand(double), Operator(string), Second Operand(double). create switch case switch (oprt) { case "+": call addition method case "-": call substraction method case "*": case "/":

default: "You did not enter a correct operator, no calculation done."

}

- Create four static methods: public static double Addition( double x, double y) public static double Substraction(double x, double y) public static double Division(double x, double y) public static double Multiplication(double x, double y)

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!