programming architecture 1
You have been engaged to develop a special calculator program. The requirements for this program are very specific, and are as follows:
Create a Windows Forms application in Visual Studio using C#. The interface should look similar to this:
Create the following controls as shown above:
- Labels for “Enter Informationâ€, “Nameâ€, “Input 1â€, and “Input 2â€
- Three textboxes as shown in the picture above
- Buttons for Addition, Subtraction, Multiplication and Division
- Buttons for calculating Sine, Cosine and Tangent (based on the first input textbox only)
- A button that calculates Modulus
- A button that clears the textboxes
Write a method for each of these calculations that will accept the incoming numbers from the two input field and return the calculated value. This value should be displayed in a MessageBox window, which should also display the user’s name from the first textbox.