コード例 #1
0
        public static void Main(string[] args)
        {
            EmpWageBuilder empWageBuilder = new EmpWageBuilder();

            empWageBuilder.addCompanyEmpWage("DMart", 20, 2, 10);
            empWageBuilder.addCompanyEmpWage("Reliance", 10, 4, 20);
            empWageBuilder.computeEmpWage();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            EmpWageBuilder empWageBuilder = new EmpWageBuilder();

            empWageBuilder.addCompanyEmpWage("Google", 40, 20, 100);
            empWageBuilder.addCompanyEmpWage("Facebook", 30, 15, 75);
            empWageBuilder.computeEmpWage();

            Console.WriteLine("Total Wage for Google company : " + empWageBuilder.getTotalWage("Google"));
        }
コード例 #3
0
        public static void Main(String[] args)
        {
            EmpWageBuilder empWageBuilder = new EmpWageBuilder();

            empWageBuilder.AddCompany("Relaince", 4000, 84, 258);
            empWageBuilder.AddCompany("Godrej", 940, 80, 240);
            empWageBuilder.AddCompany("Google", 250, 90, 850);
            empWageBuilder.AddCompany("TATA", 8000, 50, 200);
            empWageBuilder.DisplayCompanyMonthlyWages();
            empWageBuilder.DisplayCompanyDailyWages();
            Console.WriteLine($"Monthly Wages for Google are {empWageBuilder.GetMonthlyWageByCompanyName("Google")} ");
        }