Prof. Schweikrt was helping the class with the file handling for assignments 3B and 3D.
Assignment 4
CASE STUDY -PAYROLL SYSTEM PHASE 4: DECISION-MAKING
At this phase of the payroll system, we are going to include the appropriate tax rate (variable) rather than a fixed tax rate of 10% (constant). The program will also compute the overtime pay.
4A) Assign different tax rates based on the following gross pay:
gross pay > 500.00 then taxrate = 0.30 (30%)
gross pay > 200.00 then taxrate = 0.20
anything less then taxrate = 0.10
4B) Determine an additional tax rate based on marital status:
1) Declare marital status as a number (integer).
1=Single 2=Married 3=Head of Household
an additional 5% will be added to the tax rate of a single person
subtract 5% if head of household
2) Declare marital status as character (working with either letters M, S, H or character digits 1,2,3).
3) Program should accept either upper case or lower case letters for marital status (e.g. accept M or m).
4) Use the visual basic radio button from the toolbox.
4C) Compute the overtime pay according to the following formula:
Any hours over 40 are considered time and a half (overtime).
You may want to find overtime hours (e.g. hoursworked – 40) and overtime pay
(e.g. overtimehours*hourlyrate * 1.5).