Project for CIS50:

Caution: Carefully read the whole project and design your tables and processing before starting to implement. E-mail me with any questions.

Set up a payroll table containing information about the employee and their pay rate. We will do a simplified table with some of the usual fields not used - on this basic table, you need to have employee id, name, address, type of employee (code for full, part-time), code to check whether salaried or hourly, salary, pay per hour, sick time used, vacation time used, year-to-date gross pay.

Set up a transaction table where weekly transactions come in having to do with hours worked, overtime hours worked, sick time used, vacation time used. The file should have the employee id, the date of the transaction, the type of transaction (a code to indicate hours worked, overtime hours worked, sick time hours used this week, vacation time hours used this week), and a field for the hours. Note that there can be multiple transactions for a person or no transactions for a person if they are salaried and did not work overtime, take sick time or use vacation time.

When creating the tables:

Processing: