public int ComputeMonthlyWage(CompanyEmpWage company)
        {
            int    workingHours  = 0;
            int    workingDays   = 0;
            int    wagesPerMonth = 0;
            Random rand          = new Random();

            while (workingHours < company.maxWorkingHours && workingDays < company.maxWorkingDays)
            {
                int attendance  = rand.Next(0, 3);
                int hoursWorked = 0;
                switch (attendance)
                {
                case EMP_FULL_TIME:
                    workingDays += 1;
                    hoursWorked  = FULL_DAY_HOUR;
                    break;

                case EMP_PART_TIME:
                    workingDays += 1;
                    hoursWorked  = PART_TIME_HOUR;
                    break;

                default:
                    break;
                }                //end Switch

                workingHours  += hoursWorked;
                wagesPerMonth += (company.wagePerHour * workingHours);
            }            //end while
            return(wagesPerMonth);
        }
        public void AddCompany(string companyName, int wagePerHour, int maxWorkingDays, int maxWorkingHours)
        {
            CompanyEmpWage company = new CompanyEmpWage(companyName, wagePerHour, maxWorkingDays, maxWorkingHours);

            company.setWagesPerMonth(this.ComputeMonthlyWage(company));
            companies[noOfCompanies] = company;
            noOfCompanies++;
        }
 public void AddCompany(CompanyEmpWage company)
 {
     company.setWagesPerMonth(this.ComputeMonthlyWage(company));
     companies[noOfCompanies] = company;
     noOfCompanies++;
 }