Create a Visual Studio Program.

profilediaz.jonctuanur7
assignment_.docx

Assignment

Create a Visual C# Windows Forms Application with the following user Interface:

1. Implement a simple calculator shown in the picture above. Meaning of symbols are:

2. You may assume that users will enter numbers (integer or double) only in the Text Boxes for the First Operand and Second Operand.

3. For each operand field, if a field is blank when an operator button is clicked, show a message box.

4. If a user clicks an operator button, show the calculation result in the Text Box labeled Result. Users may see the result, but cannot edit the result. At the same time, each calculation log will be added to the Calculation History List Box as shown in the interface screen above.

(Caution: The % Button should calculate MODULO - not PERCENTAGE!)

5. According to the choice in the Check Boxes or Radio Buttons, show/hide the corresponding button.

6. If Move Result to First Operand button is clicked, move the value in the Result field to First Operand field.

7. If Clear All Calculation Fields button is clicked, clear all three text boxes, Result, First Operand, and Second Operand fields.

8. If Clear Current Fields button is clicked, clear the text box where the cursor is placed.

9. If Clear History button is clicked, clear the entire contents in this Calculation History List Box.

10. If Delete Selected Item (Single Selection) is clicked, remove the currently selected item in the List Box. You may assume that users always will make a single selection.

11. For other details, follow the interface in Microsoft Office programs.

- 2 -