Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Employee Wage Computation Program!\n");
            EmployeeWageBuilder empWageBuilder = new EmployeeWageBuilder();

            empWageBuilder.AddCompanyEmpWage("DMart", 20, 2, 10);
            empWageBuilder.AddCompanyEmpWage("Reliance", 10, 4, 20);
            empWageBuilder.ComputeEmpWage();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Employee Wage Computation Program");
            EmployeeWageBuilder empWageBuilder = new EmployeeWageBuilder();

            empWageBuilder.AddCompanyEmpWage("Microsoft", 20, 20, 100);
            empWageBuilder.AddCompanyEmpWage("Amazon", 10, 25, 200);
            empWageBuilder.ComputeEmpWage();
            Console.WriteLine("Total employee wage for Microsoft " + empWageBuilder.getTotalWage("Microsoft"));
        }