Shahezad Contractor
Dr. Ebrahimi

3/9/06

Programming is problem solving.  If marital status equals Single tax rate equals taxrate + 0.05.  If marital status is married the taxrate remains the same.  If the marital status is Head of Household tax rate equals taxrate - 0.05.  There are three ways to input, Input Box, Text Box Take from input box and put into a textbox.  The textbox goes to the input variable, then you process the input variable and in order to display you have to put the variable into the textbox.

STUDY - PAYROLL SYSTEM PHASE 4: DECISION-MAKING

At this phase of the payroll system, we are gonig 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 than taxrate = 0.10

4B) Determine an additional tax rate based on marital status:
1) Declare material 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 letter for marital status (e.g. M or m).

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).