PROJECT 4 HINTS – Decisions
CHAPTER 5, Page 246, Problem #3
Federal Income tax problem.
- Hint 1. The only controls on your form should be a picturebox (or label if you wish), and a commandbutton.
- Hint 2. Use the inputbox function to obtain a requested taxable income
.
variable = InputBox("Enter your taxable income: ")
- Hint 3. The click event procedure should call two different procedures. The procedures should pass the value of the variable from the inputbox. One procedure should handle the taxable income variable. The other procedure should use an if statement to see if the taxable income is less than 0, if it isn’t, the if statement should reference a Function (user defined, you should create it yourself) that determines your tax.
- Hint 4. The function you create should include a Select Case statement that first references the variable as part of the scenario, then checks the value based upon the values from the table in the book. Below is an example of the Select Statement for Income < 25350.
Select Case income
Case Is < 25350
Tax = 0.15 * income