you have been engaged to develop a graphical calculator in Microsoft visual studios 2010. Specific requirements are as follows: Create a graphical calculator with buttons that can add, subtract, multiply, divide, +/-, Sin, Cos, Tan, clear, and Modulus. Write a method of these calculations that will accept the needed incoming numbers and return the calculated value. Please note the call to these methods will occur when = is pressed. You may only use 1 textbox to input numbers and display the results. The first step is to open up the Windows Form. We can change the name of the form by modifying the text property on the form to be “Calculator”. Notice how the change is reflected automatically on the form. This assignment requires 11 buttons, and one textbox to input and display the results. Button1 is Button2 is Button3 is Button4 is Button5 is for +/- Button6 is Button7 is Button8 is Button9 is Button10 is Button11 is for =

Developing a graphical calculator in Microsoft Visual Studios 2010 involves creating a Windows Form application with specific requirements. The calculator should have buttons for addition, subtraction, multiplication, division, sign change (+/-), sine, cosine, tangent, modulus, clear, and equals (=). The calculator should also have one textbox to input numbers and display the results.

To start, open the Visual Studios 2010 and create a new Windows Form application. Give the form the name “Calculator” by modifying the “Text” property of the form. This name change will automatically reflect on the form.

Next, place 11 buttons on the form. Each button will correspond to a specific function or number. The naming convention for the buttons should be as follows:

– Button1: Addition
– Button2: Subtraction
– Button3: Multiplication
– Button4: Division
– Button5: Sign change (+/-)
– Button6: Sine
– Button7: Cosine
– Button8: Tangent
– Button9: Modulus
– Button10: Clear
– Button11: Equals (=)

Finally, add one textbox to the form. This textbox will be used to input numbers and display the results of the calculations.

In order to perform the calculations and return the calculated value when the equals button (=) is pressed, you need to write methods for each of the calculations. These methods should accept the necessary incoming numbers as parameters and return the calculated value.

For example, the addition method could be written as follows:

“`C#
public double Addition(double num1, double num2)
{
return num1 + num2;
}
“`

Similarly, write methods for subtraction, multiplication, division, sign change (+/-), sine, cosine, tangent, modulus, and clear operations. These methods should perform the required calculations and return the appropriate results.

Once all the methods are written, you can call them when the equals button (=) is pressed. Use the values entered in the textbox as the input for the calculations. Display the calculated value in the same textbox.

With the Windows Form, buttons, textbox, and calculation methods in place, your graphical calculator in Microsoft Visual Studios 2010 will be able to perform basic calculations and display the results accordingly.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer