/*
 * @topic T11339 Spring 2017 Inheritance Demo
 * @brief App demonstrating inheritance and enum types
*/
package inheritancedemo;

import static inheritancedemo.EmployeeType.*;

public class MainApp {

    public static void main(String[] args) {
        Company company = new Company();

        // create a few employees:
        company.addEmployee( 100, FULL_TIME, 1000.00 );
        company.addEmployee( 200, PART_TIME, 75.00 );
        company.addEmployee( 300, PART_TIME, 55.00 );
        
        // create a few timetable entries:
        company.populateTimetable();
        
        // test how everything fits together:
        double total = company.computePayroll();

        // display the total:
        System.out.println("Total payroll: " + total );

    }//main
    
}//class MainApp