Lab 3 - Spring 2000

Holidays and other days

Our hourly workers get paid $6.75 per hour except on Sundays and holidays when they get paid $10.25 per hour. Workers have their pay information stored in a file. The file begins with the number of workers, followed by the list of workers. Each worker has a name, identification number and a list of days worked. Each day consists of the hours worked. Because there are two different methods for computing wages we have two different types of day, week day and holiday. This information is also stored in the file.

Write a program to read the file, compute the weeks wages for each employee and print the employee's name, id number and wages. Use a hierarchy of days with appropriate virtual functions.

Schedule for this lab