Ejemplo n.º 1
0
        static void  Main(string[] args)
        {
            PayCheck studentCheck = new PayCheck();

            //Test comment


            studentCheck.SetStudentFirstName("Tammy");
            studentCheck.SetStudentLastName("Carlone");
            studentCheck.SetMaritalStatus("Single");
            studentCheck.SetStudentId(235);
            studentCheck.SetGrossPay(10000);
            studentCheck.SetFedExemptions(1);
            studentCheck.SetStateExemptions(2);
            studentCheck.SetPayPeriod();
            studentCheck.GetDirectDeposit(studentCheck.GetFederalTax(), studentCheck.GetStateTax(), studentCheck.GetSocialTax(), studentCheck.GetMedicareTax());

            WeeklyReport earningsStatement = new WeeklyReport(studentCheck);

            earningsStatement.printReport();
            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public WeeklyReport(PayCheck payCheck)
 {
     this.payCheck = payCheck;
 }