Вы находитесь на странице: 1из 3

FIT441 AIW Tutorial Advanced Internet & Web Services

ASP.NET Exercise
Task
Build a web application with GUI elements that performs simple calculations on two numbers. Call the application WebSite1.

GUI
Your GUI should have the following elements: body element with bgColor property, 4 Buttons, 2 TextBoxes, RadioButtonList, DropDown List and 2 Labels (one invisible see explanation below)

FIT441 AIW Tutorial Advanced Internet & Web Services

Required Functionality
The user is prompted to enter two floating point numbers into two TextBoxes fields initialized with the string "insert a value". After entering the numbers the user chooses one of the following operations: Adding the numbers by pressing the button labaled "+". Subtraction the second number from the first by pressing the button labaled "-". The resulting value is written to the field labeled "The result is:" Next, the user can multiply one of the values (chosen by radio button) by a number between 2-6 chosen from a DropDownList. The result value is written to a result label. Next, the user can click the "Add Taxes" button, which results in adding a 16.5% tax to the resulting value. The output should be written to a field labeled with an invisible label, which, at this stage, will become visible.

Sample Screen Shots


After an addition operation:

FIT441 AIW Tutorial Advanced Internet & Web Services

After multiplication of the second string by 3 and computing the final sum:

Hint: 1. Each time you recompute the resulting value, delete the previous result. 2. Before doing any computation, parse the strings into a suitable data type. For example, you can use
float.Parse(TextBox1.Text)

Submission instructions:
Submit to FIT PORTAL a Zip package containing the entire project (all the directories + all the files). Name convention: YourName_Class_aspnetexercise.zip

Вам также может понравиться