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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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