CIS 1.5

Brooklyn College

Professor Langsam

 

Assignment Number One

 

A company pays its employees according to the following formula:

 

·         Straight Time:             Number of Hours ´ Rate of Pay

·         Over Time:                  1.5 ´ Number of Over Time Hours ´ Rate of Pay

·         Gross Pay:                   Straight Time Pay + Over Time Pay

·         Tax:                             20% of the Gross Pay

·         Net Pay:                      Gross Pay – Tax

 

Calculate the Gross and Net Pay for the employees shown in the table below. Note: Over Time Hours is the number of hours in excess of that employee’s normal working hours.

 

Be sure to document your program, use meaningful variables and use proper programming style.

 

 

Hours Worked

Normal Working Hours

Rate of Pay

45

40

$5.00 / hr

45

45

$10.50 / hr

35

40

$5.00 / hr

50

40

$10.50 / hr

15

35

$15.00 / hr

55

35

$25.00 / hr

Make up 4 more sets of data

¼

0

0

0

 

 

Your output should appear as follows (using the first set of data as an example):

 

                        Rate of Pay:                $5.00

Total Hours Worked:       45

                        Straight Time:                   40

                        Over Time:                           5

                        Gross Pay:              $237.50                                   

                        Tax:                            $47.50

                        Net Pay:                  $190.00

 

                                               ¼