Assignment Instructions

  1. Create a new ASP.NET website on your desktop in new folder called WebSite4
  2. Create a web page called assignment4.aspx
    1. Nested inside the <body> element, create a <h1> element at the top of the webpage, with the words "Assignment 4". Set the alignment and colors as you wish.
    2. Below <h1> element, add the <h2> element with the words "Part 1". Set the alignment and colors as you wish.
    3. In the Web Page file, add a Label Web Control. (Delete the Text="Label" attribute/value pair.)
    4. In the Visual Basic file, create a Load Page method. (Click "(Page Events") on the top-left drop-down menu. And then click "Load" on the top-right drop-down menu.)
    5. Create three Integer variables and initialize them to three different Integer numbers.
    6. Calculate the average of the Integer numbers and store the result in a fourth Integer variable.
    7. Send the message with the result to the Web Page and display the message on the Web Page.
  3. Below the output to "Part 1", add the <h2> element with the words "Part 2". Set the alignment and colors as you wish.
    1. In the Web Page file, add three (3) Textboxes, a Button, and a Label Web Control. (Add appropriate user feedback, such as "Enter a decimal number" for the textboxes, "Click to calculate average" on the button, and delete the the Text="Label" attribute/value pair.)
    2. Switch to "Design" view and double-click on the Button in the Web Page file, to create a Button method in the Visual Basic file.
    3. Create three Decimal variables and initialize them to three Decimal numbers of the user.
    4. Calculate the average of the Decimal numbers and store the result in a fourth Decimal variable.
    5. Send the message with the result to the Web Page and display the message on the Web Page.
  4. To save your data for the future use, you should bring a USB flash drive to class, and/or save your work on the T drive on the classroom computers.
    1. When you turn off the computers in the lab, all your data will be erased, except for what is on the T drive.
  5. You need to show me your ASP.NET web page in class in order to get credit for this assignment.

Click to validate the HTML code

Click to validate the CSS code