private static void DoPayrollThisPeriod()
        {
            CompanyRoster companyRoster = new CompanyRoster();

            companyRoster.CalculatePay();
            companyRoster.ListEmployeePayForPeriod();
        }
示例#2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to the Company Payroll App!");
            CompanyRoster          companyRoster          = new CompanyRoster();
            List <PayrollEmployee> payrollEmployeeWorkers = new List <PayrollEmployee>();

            companyRoster.PopulateEmployeeList(payrollEmployeeWorkers);
            ListEmployees(payrollEmployeeWorkers);
            double bonusAmount = PromptUserForBonusInfo();
            int    hoursWorked = PromptUserForHoursInfo();

            ReceivePayrollInfo(payrollEmployeeWorkers, bonusAmount, hoursWorked);
            companyRoster.CalculatePay(payrollEmployeeWorkers);
            ListEmployeesWithPay(payrollEmployeeWorkers);
        }