CECS 282
LAB ASSIGNMENT 4
Assigned date: 9/19
Due date: Tue 9/24
20 points

Problem 1 [15 points]

The idea of this program is to create an array of pointers to objects of the person class. The program can sort a group of person objects based on the alphabetical order of their names or the numerical order of their salary.

Requirements:

  1. Create class called person with the following property and methods:
  2. Create a function called bsort to sort pointers to objects.
  3. In the main function

Problem 2 [5 points]
Redo problem 1 without creating the function order.

GRADING