import company alice = company.Employee("Alice", "123 Avenue", 1) bob = company.Employee("Bob", "456 Blvd.", 2) carol = company.Employee("Carol", "789 Court", 3) dave = company.Employee("Dave", "12 Drive", 4) employees = [alice, bob, carol, dave] if alice == bob: print(alice, 'and', bob, 'are the same employee') xyz = company.Company('XYZ Widget Company', '345 Grove', 4, employees) xyz.add_employee(company.Employee('Eve', '678 Heights', 5)) print(xyz.name, 'has', xyz.get_employee_count(), 'employees:') for empl in xyz.get_employees(): print(' ', empl) #XYZ splits into XYZ and Acme. XYZ keeps the first three employees (Alice, #Bob, and Carol) and Acme gets Dave. Eve will be shared between the two #companies. acme = xyz.split('Acme') acme.remove_employee(alice) acme.remove_employee(bob) acme.remove_employee(carol) print("Acme's employees are:") for empl in acme.get_employees(): print(' ', empl) xyz.remove_employee(dave) #XYZ merges with Ajax ajax = company.Company('Ajax Corporation', '901 Knoll', 2, [company.Employee('Faith', '234 Lane', 1), company.Employee('George', '567 Manor', 2)]) xyz.merge(ajax) xyz.name = "AjaXyz" ajax_xyz = xyz print(ajax_xyz.name, "'s employees are:", sep='') for empl in ajax_xyz.get_employees(): print(' ', empl)