QuestionQuestion

Minilab: Imagine you have a Employees directory. Make an H file and implement your Administrator Class:

/* This is the header file for Administrator class */
/* Please finish the definition of the class to provide the following additional members:
* 1. a string type member variable to store the title (director, Vice President, ... )
* 3. Constructor functions: one default one, another taking necessary info. about the administrator: name, SSN, salary, title
* 4. redefine print_check() so that the title is printed on the check. Start with the version from
* SalariedEmployee
*/
#ifndef ADMINISTRATOR_H
#define ADMINISTRATOR_H

#include "SalariedEmployee.h"

class Administrator:public SalariedEmployee
{
public:
Administrator();
Administrator(string name, string SSN, double salary, string title);


void print_check();

private:

};

#endif

/* Implement Administrator class */
#include <iostream>
#include "Administrator.h"

using namespace std;

Administrator::Administrator():SalariedEmployee()
{
}

Administrator::Administrator(string name, string SSN, double salary)

{
//
}

void Administrator::print_check()
{

}

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

int main() {
    // As the NumArray can be partially filled, we use variable NumArraySize to keep track of how many numbers
    // have been stored in the array.
    int NumArray[CAPACITY]; // a int array with a given capacity
    int NumArraySize = 0; // the array is initially empty, i.e., contains 0 elements

    //1. TODO: Prompt the user to enter a sequence of integer values, separated by space, and ended with -1,
    //       and store the values in the array
    //       Display the array afterwards
   
    cout << "Enter a sequence of integer values, separated by space, and ended with -1: ";
    int number;
    cin >> number;
    while (number != -1) {
       InsertValueIntoArray(NumArray, NumArraySize, number, NumArraySize);
       cin >> number;
    }
   
    Display(NumArray, NumArraySize);

    //2. TODO: Call your function to search for value 50.

    if (Search(NumArray, NumArraySize, 50) >= 0) {
       cout << "50 is found\n";
    } else {
       cout << "50 cannot be found\n";
    }...

By purchasing this solution you'll be able to access the following files:
Solution.cpp.

$35.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available C-Family Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats