asp.net

profilesanosh3
assignment_4.pdf

Northeastern University, ITC 2811 – Advanced Application Development Assignment 4

Page 1 of 1

Assignment 4

Create a Web Forms project called Assignment4 that that is essentially the same as the

Calculator project from assignment 2; however, this time create private methods called

AddNumbers(), SubtractNumbers(), MultiplyNumbers(), and DivideNumbers() . Each of these

methods should have two parameters of type int and return an int value. Here is how it should

work:

 When the + button is clicked, the click event handler method should pass the two

numbers to the AddNumbers() method, where they are added and the result is sent

back to the click event handler. In the click event handler, the result is assigned to the

Text property of the result TextBox.

 When the - button is clicked, the click event handler method should pass the two

numbers to the SubtractNumbers() method, where they are subtracted and the result is

sent back to the click event handler. In the click event handler, the result is assigned

to the Text property of the result TextBox.

 When the * button is clicked, the click event handler method should pass the two

numbers to the MultiplyNumbers() method, where they are multiplied and the result is

sent back to the click event handler. In the click event handler, the result is assigned

to the Text property of the result TextBox.

 When the / is clicked, the click event handler method should pass the two numbers to

the DivideNumbers() method, where they are divided and the result is sent back to the

click event handler. In the click event handler, the result is assigned to the Text

property of the result TextBox.

What to Submit

To submit this assignment, you may zip up the solution folder(s) and submit them to me via the

Blackboard.

Good luck and don’t hesitate to contact me if you have any question