Lab 4
For this project you may create your own interface or use the one provided
in the Shell folder on the Content tab in Angel. If you use the shell be sure to
rename the appropriate controls and add your name to the title bar of the form.
You should also "make it your own" by changing colors, fonts, and/or rearrange
the layout.

Your task is to code If statements behind the appropriate command buttons
for the following scenarios. Display the result in a label.
Calculate Tax
If taxable income is greater than $30,000, then taxes are $4,500 plus 28% of the
taxable income over $30,000. If taxable income is less than or equal to $30,000,
taxes are 15% of taxable income.
Calculate Weed Control Application
The cost of weed control is based on the square footage treated. The cost is .01
per 5 square feet for lawns an acre or larger (an acre = 43560 square feet) and
.01 per 4 square feet for less than an acre. There is a minimum cost of $30
Calculate Balance
If the amount to be withdrawn from an ATM is less than or equal to the existing
balance, subtract the amount from the balance to compute the new balance and
display in the label.
Otherwise, display a message “Insufficient Funds” in the label. For this scenario you will
need to input both the original balance and the withdrawal amount.
Additional Requirements:
-
Use block If..End If statements behind the If...End If column of buttons.
-
Use the If…Else..End If form of the If statement behind the If..Else..End
If column of
buttons
-
Code a Clear button for each scenario.
Set focus back to the text box related to the command button after clearing the
related textbox(es) and output label. For the balance/withdrawal problem set focus to the balance text box.
-
Set focus back to the text box related to the command button after output is
displayed. For the balance/withdrawal problem set focus to the balance text box.
-
Select the contents of the textboxes when focus moves to them.
Remember to:
-
Turn Option Strict On
-
Format all output values appropriately.
-
Include your name in the title bar of the form
-
Add documentation to the General Declaration Section of the class that includes
your name
a brief description of what the program does
A record of how much time you spent on the lab
Hints:
-
A sample executable is available in the Sample Executable folder in
Angel
-
Since each command button is independent of all others, define all needed
variables locally, that is, in the event procedures.
-
Code ONE button. Test it. Make it work. Then code the companion button. Once you
have one pair working the others will be easier.
-
Look for patterns!!!
-
To be certain your program works think carefully about what values should be
used to adequately test your statements?
When you are confident the program works
Submit a zipped folder(s) containing the entire project(s) as an attachment in the
appropriate drop box.