Write a program that uses the class salariedemployee

Assignment Help C/C++ Programming
Reference no: EM13938065

Write a program that uses the class SalariedEmployee shown below. Your program is to define a class called Administrator, which is to be derived from the class SalariedEmployee. You are allowed to change private in the base class to protected. You are to supply the following additional data and function members:

A member variable of type string that contains the administrator's title (such as Director or Vice President).

A member variable of type string that contains the company area of responsibility (such as Production, Accounting, or Personnel).

A member variable of type string that contains the name of this administrator's immediate supervisor.

A protected: member variable of type double that holds the administrator's annual salary. It is possible for you to use the existing salary member if you did the change recommended earlier.

A member function called set_supervisor, which changes the supervisor name.

A member function for reading in an administrator's data from the keyboard.

A member function called print, which outputs the object's data to the screen.

An overloading of the member function print_check() with appropriate notations on the check.
-------------------------------------------------------------------------------------------------

//This is the header file salariedemployee.h.
//This is the interface for the class SalariedEmployee.
#ifndef SALARIEDEMPLOYEE_H
#define SALARIEDEMPLOYEE_H

#include <string>
#include "employee.h"

using std::string;
using namespace std;

namespace SavitchEmployees
{

class SalariedEmployee : public Employee
{
public:
SalariedEmployee( );
SalariedEmployee (string theName, string theSsn,
double theWeeklySalary);
double getSalary( ) const;
void setSalary(double newSalary);
void printCheck( );
private:
double salary;//weekly
};

}//SavitchEmployees

#endif //SALARIEDEMPLOYEE_H

Attachment:- salariedemployee.zip

Reference no: EM13938065

Questions Cloud

How do organisms acquire energy : What is the purpose of this pathway? What are the reactants? What are the products?
Develop a set of hrm recommendations for a fictitious : Develop a set of HRM recommendations for a fictitious, scenario organisation that will be assigned by the Faculty Member that contains the three primary assessment elements.
Prepare the entry to recognize the issuance of the bonds : Prepare the entry to recognize the issuance of the bonds. Prepare the journal entry for December 31, 2009. Prepare the journal entry for December 31, 2010.
Create a new smartphone application : Create a new smartphone application. The paper should include what the application is, it should be particularly based on or for students for our university.
Write a program that uses the class salariedemployee : Write a program that uses the class SalariedEmployee shown below. Your program is to define a class called Administrator, which is to be derived from the class SalariedEmployee. You are allowed to change private in the base class to protected. You..
Fundamental frequency of this function : Make a list of the Fourier an and bn coefficients and, from these, calculate the amplitude at each of the frequencies. Now sketch the function in the frequency domain .You should ignore any phase difference..
Prepare the entries to recognize the borrowing : Prepare the entries to recognize the borrowing, the first year's interest expense, and the second year's interest expense plus redemption of the note at maturity.
Explain why it might make sense to cut prices so low that : If you were managing a monopoly, and small entrant tried to enter your market, explain why it might make sense to cut prices so low that you would suffer losses for a time. Imagine that you are managing a small firm and thinking about entering the ma..
Reason for merger activity : The US has a _________________ because foreigners invest more in the US than we invest in foreign countries. Which of the following is NOT given as a reason for merger activity in the U.S.?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Accepts a pointer to a c-string as an argument

Write a function that accepts a pointer to a C-string as an argument and capitalizes the fist character of each sentence in the string. For instance, if the string argument is "hello

  Give a complete pseudo-code description of the recursive

Give a complete pseudo-code description of the recursive merge-sort algorithm that takes an array as its input and output.

  Write a while loop that lets the user enter a number

Write a while loop that lets the user enter a number-The number should be multiplied by 10, and the result stored in the variable product

  Write a function for upper triangular matrix

Write a function 'function x = u solve(A,b)' to solve Ax = b when 'A' is a upper triangular matrix.

  Write a program to make the ssds function

Write a program to make the SSDs function as a MM:SS real-time clock. Hint: You must not use a single delay routine for the one second delay because that will not allow for persistence of vision. The displays need to be constantly refreshed during ev..

  Android activity program

Design an app with a single activity that shows the following information about that activity every time that activity is visible to the user. This information should be shown in the layout of that activity

  Write an application that reads the user''s weight

Write an application (BMICalc) that reads the user's weight in poinds and height in inches, then calculates the Body Mass Index.

  Write c program which has parent process and child process

Write a C program that has a parent process, a child process, and a grandchild process. The parent process should print its id and the square or 5.

  The user enter the total rainfall for each of 12 months

Write a program that lets the user enter the total rainfall for each of 12 months (starting with January) into an array of doubles. The program should calculate and display:the total rainfall for the year,the average monthly rainfall,and the months w..

  Draw a two-dimensional house seen from the front

Draw a two-dimensional house seen from the front, the way a child would: with a door, two windows, and a roof with a chimney. Feel free to add details; mabe have "smoke" come out of the chimney.

  Saddle point is an element

For a square nXn a array, a saddle point is an element that is the maximum in its row and the minimum in its column.

  Modify the program in 6a so that, in addition to the cents

Modify the program in 6a so that, in addition to the cents, the user enters the denomination of the coin to which to convert the pennies, such as 5 for nickles or 25 for quarters.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd