Question: In Microsoft Visual Studio 2015 & using C# programming how do you code this?: (please include a switch statement like it asks for) In this

In Microsoft Visual Studio 2015 & using C# programming how do you code this?: (please include a switch statement like it asks for)
 In Microsoft Visual Studio 2015 & using C# programming how do

In this exercise, you'll create a form that accepts two operands and an operator from the user and then performs the requested operation Simple Calculator Operand 1: 8 Operator Operand 2 Resut 77408 1. Start a new project named SimpleCalculator 2. Add labels, text boxes, and buttons to the default form and set the properties of the form and its controls so they appear as shown above. When the user presses the Enter key, the Click event of the Calculate button should fire. When the user presses the Esc key, the Click event of the Exit button should fire. 3. Code a private method named Calculate that uses a Switch statement to perform the requested operation and returns a decimal value. This method should be coded with the following parameters: Parameter decimal Operandl string Operatorl decimal Operand2 Description The value entered for the first operand. One of these four operators: +, -, , or/ The value entered for the second operand. 4. Create an event handler for the Click event of the Calculate button. This event handler should get the two numbers and operand the user enters, call the Calculate method to get the result of the calculation, display the result rounded to four decimal places, move the focus to the Operand 1 text box, and highlight the text there. Create an event handler for the Click event of the Exit button that closes the form. 5. Create an event handler that clears the Result text box if the user changes the text in any of the other text boxes. 6. 7. Test the application to be sure it works correctly

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!