CSC 175 - Intermediate Programming

Dr. R. M. Siegfried

Assignment #5 - Payroll for a Progressive Company

Due Thursday, February 1, 2024

You are working for a company that is somewhat progressive in their pay scale. Single people get paid $10 per hour; married people get paid $15 per hour. In either case, they get paid an extra $1 per hour for their first four children.

Your program will ask whether the employee is married or not. You will read in a "0" for single and a"1" for married. Then you will ask how many children the employee has. Then you will ask for the number of hours worked and calculate gross pay. As usual, the employee will get time and a half after 40 hours.

[Back to the Assignment Index]