Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

// Enter your name as a comment for program identification // Program assignment

ID: 3533830 • Letter: #

Question

// Enter your name as a comment for program identification
// Program assignment testEmployeeAB.cpp
// Enter your class section, and time

/* The program testEmployeeAB.cpp tests the class Employee.
   The class Date is included so
   that the Employee class can use the Date data type. */

/* Data is entered to create an employee data file. */
/* A payroll report and equal employment opportunity report
   showing ethnicity data is displayed. */

//header files
/* use the correct preprocessor directives for
   input/output */
#include <iostream>
#include
<iomanip>
#include
<string>
#include
"Employee.h"
#include
"Date.h"
using namespacestd;



/* The function instruct describes the use
   and purpose of the program. */
void instruct();

// main function
int main()
{
  
// declare variables
   /* an Employee object hourly to test the
      default constructor and an Employee
      object suit to test the constructor
      with a parameter */

   instruct();

   Employee hourly;
   Employee suit(25);
  
  
// call the member function pay with the object hourly
   _________._____();
  
// call the member function eeo with the object hourly
   __________.___();
  
// call the member function pay with the object suit
   ____.____();
  
// call the member function eeo with the object suit
   _____._____();

  
return0;
}

void instruct()
{
   cout <<
"The program testEmployee.cpp is a driver program to "
          "test the class Employee. ";
}

/*
The program testEmployee.cpp is a driver program to test the class Employee.

Enter first name and last name separated by a space: Juanita Gonzalez
Please enter starting date mm dd yyyy for Juanita Gonzalez: 11 2 2004
Please enter your ethnicity: (C)aucasian, (A)frican American,
(N)ative American, (H)ispanic, A(s)ian, (O)ther: H

Enter first name and last name separated by a space: Gordon Chang
Please enter starting date mm dd yyyy for Gordon Chang: 9 2 1984
Please enter your ethnicity: (C)aucasian, (A)frican American,
(N)ative American, (H)ispanic, A(s)ian, (O)ther: s

How many hours did Juanita Gonzalez work this week? 42

Weekly pay for Juanita Gonzalez is $311.75
The employee ethnicity is Hispanic.

How many hours did Gordon Chang work this week? 54

Weekly pay for Gordon Chang is $1525.00
The employee ethnicity is Asian.
*/

Explanation / Answer

#include <iostream>
#include
<iomanip>
#include
<string>
#include
"Employee.h"
#include
"Date.h"
using namespacestd;



/* The function instruct describes the use
   and purpose of the program. */
void instruct();

// main function
int main()
{
  
// declare variables
   /* an Employee object hourly to test the
      default constructor and an Employee
      object suit to test the constructor
      with a parameter */

   instruct();

   Employee hourly;
   Employee suit(25);
  
  
// call the member function pay with the object hourly
   hourly.pay();
  
// call the member function eeo with the object hourly
  hourly.eeo();
  
// call the member function pay with the object suit
  suit.pay();
  
// call the member function eeo with the object suit
  suit.eeo();

  
return0;
}

void instruct()
{
   cout <<
"The program testEmployee.cpp is a driver program to "
          "test the class Employee. ";
}