static void Main(string[] args) { Surgeon Jenny = new Surgeon("Jenny", 234, "Operating", false); Surgeon Meredith = new Surgeon("Meredith", 645, "Operating", true); Nurse Sonny = new Nurse("Sonny", 789, "Patient_Care", 6); Nurse Anthony = new Nurse("Anthony", 123, "Patient_Care", 4); Receptionist Tom = new Receptionist("Tom", 951, "Patient_Care", true); Console.WriteLine(Jenny.EmployeeName + " " + Jenny.EmployeeNumber + " " + Jenny.SpecialtyArea + " " + Jenny.CurrentlyOperating); Console.WriteLine(Meredith.EmployeeName + " " + Meredith.EmployeeNumber + " " + Meredith.SpecialtyArea + " " + Meredith.CurrentlyOperating); Console.WriteLine(Sonny.EmployeeName + " " + Sonny.EmployeeNumber + " " + Sonny.Department + " " + Sonny.NumberOfPatients); Console.WriteLine(Anthony.EmployeeName + " " + Anthony.EmployeeNumber + " " + Anthony.Department + " " + Anthony.NumberOfPatients); Console.WriteLine(Tom.EmployeeName + " " + Tom.EmployeeNumber + " " + Tom.Department + " " + Tom.IsOnPhone); }
static void Main(string[] args) { //Employees Doctor david = new Doctor("David Jones", 123, "Heart"); Doctor james = new Doctor("James Smith", 342, "Lungs"); Surgeon catherine = new Surgeon("Catherine Vincent", 725, "Brain", true); Surgeon jaime = new Surgeon("Jaime Rodriguez", 843, "Spine", false); Receptionist zachary = new Receptionist("Zachary Black", 186, "Office", true); Receptionist emma = new Receptionist("Emma Thompson", 865, "Customer Service", false); Nurse clara = new Nurse("Clara Kane", 527, "In-Patient", 4); Nurse kyle = new Nurse("Kyle James", 142, "Out-Patient", 2); Console.WriteLine("High St. Hospital Employees: \n"); Console.WriteLine(david.EmployeeInformation() + "\n"); Console.WriteLine(james.EmployeeInformation() + "\n"); Console.WriteLine(catherine.EmployeeInformation() + "\n"); Console.WriteLine(jaime.EmployeeInformation() + "\n"); Console.WriteLine(zachary.EmployeeInformation() + "\n"); Console.WriteLine(emma.EmployeeInformation() + "\n"); Console.WriteLine(clara.EmployeeInformation() + "\n"); Console.WriteLine(kyle.EmployeeInformation() + "\n"); }
static void Main(string[] args) { Console.WriteLine("High St. Hospital Employees \n"); Doctor doctor1 = new Doctor("Dr Gomez", 7832, "Pediatrics"); Console.WriteLine(doctor1.GetInfo()); Console.WriteLine(doctor1.GetPaid()); Surgeon surgeon1 = new Surgeon("Dr Dyko", 8274, "Liver", true); Console.WriteLine(surgeon1.GetInfo()); Console.WriteLine(surgeon1.GetPaid()); Nurse nurse1 = new Nurse("Nurse Brown", 9901, "ICU", 6); Console.WriteLine(nurse1.GetInfo()); Console.WriteLine(nurse1.GetPaid()); Receptionist receptionist1 = new Receptionist("Ms. Nelson", 4421, "ER", true); Console.WriteLine(receptionist1.GetInfo()); Console.WriteLine(receptionist1.GetPaid()); List <string> employees = new List <string>(); employees.Add(doctor1.EmployeeName); //why can't I populate like that? I can only hardcode it? employees.Add("Dr Dyko"); employees.Add("Nurse Brown"); employees.Add(receptionist1.EmployeeName); for (int name = 0; name < employees.Count; name++) { Console.WriteLine(employees[name]); } }