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

  Convert the c++ code into matlab code

Can you convert the c++ code into matlab code

  Main function to input twenty integers in given range

Write a main function to input 20 integers in range of 1-6, function should count number of times the numbers 2 and 5 occur. function must declare statics variables count2 and count5.

  Parallel numeric arrays

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays.

  Algorithm and create a flowchart

Write an algorithm and create a flowchart which simulate the testing for cell phone PIN. If the user entered the correct pin code, display "Welcome to DLM Telecom".

  Calculates an employees wage for a week

Write a program that calculates an employee's wage for a week. An employee's wage is calculated as follows - if the number of hours is less than or equal to 40, then the total payment is hour rate

  Create a menu of options that will be used in a switch case

Create a menu of options that will be used in a switch statement.

  The missing line of implementation file

Which of the following could be used as the missing line of this implementation file to overload the assignment (=) operator for the MyBag class?

  Write a function named sum-from-to that takes two integer

Write a function named "sum_from_to" that takes two integer arguments, call them "first" and "last", and returns as its value the sum of all the integers between first and last inclusive.

  Write a value-returning method namedreversedigit

Write a value-returning method namedreverseDigit, that takes an int (integer) as a parameter and returns the number with its digits reversed as an int. For example, callingreverseDigit(12345) returns the int value of 54321.

  Problem 1greatest common divisor write code for a recursive

problem 1greatest common divisor write code for a recursive implementation of euclids algorithm for searching the

  Write a function named digit_name

Write a function named "digit_name" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.

  Write mergesort code for data instead of as array

Write mergesort code for data instead of as array - which takes a linked list of integers, as in the bubblesort example code. The decclaration of the struct listnode is the same as in the bubblesort on lists example.

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