new hw for asp.net

profilesanosh3
assignment_3.pdf

Northeastern University, ITC 2811 – Advanced Application Development Assignment 3

Page 1 of 2

Assignment 3

Create a Web Forms project called Assignment3 that that has a Web Form with the following

controls:

 A Label control with the Text property of Enter a number less than 15

 A TextBox control for user input

 A Button control with the Text property of Calculate Factorial

 A Label control with ID of Result and Text property of empty string (Text="")

When the form is first loaded, the user enters a an integer less than 15 into the TextBox and

clicks the button as seen below.

The click event handler method of the button should calculate the factorial of the number entered

into the TextBox and show the result in the Text property of the ID Label as seen below.

Northeastern University, ITC 2811 – Advanced Application Development Assignment 3

Page 2 of 2

Hint: The factorial of a number n = n * (n-1) * (n-2) *… * 1

For example, 5! (5 factorial) is equal to: 5 * 4 * 3 * 2 * 1 = 120

You can choose any looping structure of your choosing to calculate the factorial.

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