Please send questions to st10@humboldt.edu .
#include <iostream>
#include <string>
#include "Prof.h"
using namespace std;

/*--------------------------------------------------
 Contract: main : void -> int
 Purpose: perform unit tests for class Prof
          (basic tests of its constructor(s),
          accessors, mutators, and any other
          member functions)

 Examples: not really applicable --- this will
           perform and display to the screen the
           results of Prof's member function 
           examples/tests.

Compile using: 
g++ -o testProf testProf.cpp Prof.o 
    (ONCE I needed to use Prof.cpp above --- not sure why)
-----------------------------------------------------*/

int main()
{
    // FIRST: test Prof's constructor(s)

    Prof chair("Burroughs", "Ann", "X.", "Prof.",
               "aeb3", "M-Th 10-12", 3.14159);

    // NEXT: test Prof's accessor functions
    cout << "lastName: " << chair.get_lastName() << endl;
    cout << "firstName: " << chair.get_firstName() << endl;
    cout << "middleName: " << chair.get_middleName() << endl;
    cout << "title: " << chair.get_title() << endl;
    cout << "emailAddress: " << chair.get_emailAddress() << endl;
    cout << "officeHrs: " << chair.get_officeHrs() << endl;
    cout << "salary: " << chair.get_salary() << endl;

    // NEXT: test Prof's mutator functions
    chair.set_lastName("Dixon");
    chair.set_firstName("Rex");
    chair.set_middleName("Chip");
    chair.set_title("Sir");
    chair.set_emailAddress("cd3");
    chair.set_officeHrs("MWF 12-2");
    chair.set_salary(9.99);

    cout << endl;
    cout << "lastName: " << chair.get_lastName() << endl;
    cout << "firstName: " << chair.get_firstName() << endl;
    cout << "middleName: " << chair.get_middleName() << endl;
    cout << "title: " << chair.get_title() << endl;
    cout << "emailAddress: " << chair.get_emailAddress() << endl;
    cout << "officeHrs: " << chair.get_officeHrs() << endl;
    cout << "salary: " << chair.get_salary() << endl;

    // now test any additional member functions...
    // (none)

    return 0;
}