Midterm Examination (page 1) CS 141 Wednesday, October 23, 1996 This is a closed-book, closed-notes examination. There are six problems, each worth 16 points. Do not spend too much time on any problem. Read them all through first and solve them in the order that allows you to make the most progress. For each of the problems, you need to write a program or a function. You do not need to write comments. Your program doesn't have to be fancy or user-friendly. You should make it as simple as possible, as long as it does what is required. Problem 2 --------- A. Define a class called "person" which has a first name and a last name, both strings. C. Write a member function for person that swaps the first name and the last name. Problem 3 --------- A. Define a class called "employee" which has a first name, a last name, and a salary. B. Write a member function for employee, called "max_salary", that takes an integer as input parameter. The function should return the input integer if it is larger than the salary of the employee. Otherwise, the function should return the salary of the employee. C. Write a function called "highest_salary" which takes an array of employess, and the number of employees in the array, as input. The function should return the highest salary of all the employees in the array of employees.