Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I want this Project by using Visual Studio 2016 ( C#) AutoSave Off H2UB Exam1_Programming (1) Search Awaz Nanzu File Home Insert Draw Design Layout
I want this Project by using Visual Studio 2016 ( C#)
AutoSave Off H2UB Exam1_Programming (1) Search Awaz Nanzu File Home Insert Draw Design Layout References Mailings Review View Help Share Comments Create a simple calculator 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 26 Operator Operand 2 11.11 Result: 7.7408 Calculate Exit 1. Start a new project named it Exam1_SimpleCalculator_fnamelname 2. Name the form fimSimpleCalculator. Change the form text property to Simple Calculator 3. 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. 4. Code a private method named Calculate that performs the requested operation and returns a decimal value. This method should accept the following arguments: Argument Description decimal operandi The value entered for the first operand. string operator One of these four operators: +, - *, or / decimal operand2 The value entered for the second operand. 5. 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 0 method to get the result of the calculation, display the result rounded to four decimal places, and move the focus to the Operand 1 text box. 6. Create an event handler for the Click event of the Exit button that closes the form. 7. Create an event handler that clears the Result text box if the user changes the text in any of the other text boxes. 8. Include exception handlings for invalid entries by using try catch and control structures. 9. Test the application thoroughly to be sure it doesn't crash and works correctly. 10. Zip the project and upload to d2l for credit. Page 1 of 1 299 words Focus + 80% 1 Type here to search PI W 11:17 AM 2/12/2021Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started