Make a class employee

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

Make a class EMPLOYEE with a name and salary. Make a class MANAGER inherit from EMPLOYEE. Add an instance field, named DEPARTMENT, of type STRING. Supply a method toSTRING that prints the manager's name, department, and salary. Make a class EXECUTIVE inherit from MANAGER. Supply appropriate toSTRING methods for all classes. Supply a test program that tests these classes and methods.

Verified Expert

In the assignment it was required to declare three classes. The declaration of the classes and their definitions can be found in the employee.cpp file. It was also asked to make a test for the classes, which can be found in employeetst.cpp. The source codes compile and work, they can be compiled using the makefile I supplied, or by doing a separated compilation, please take note that the test file requires the definitions of the classes.

Reference no: EM13165310

Questions Cloud

Prompt the user for and read 6 numbers : Write a program using an array that will store input data. Prompt the user for and read 6 numbers between 70 and 90. Verify the numbers should be greater than 70 and less than 90. If the number is less than or equal to 70 or greater than 90, repro..
Using one- and two-dimensional arrays with functions. : Objective using one- and two-dimensional arrays with functions.
Divide the network whose cidr address : Divide the network whose CIDR address is 165.221.204.0/25 into three subnets, with one subnet having half the addresses and the other two subnets having a quarter of the addresses each. Give the CIDR address of each subnet. How many addresses are ..
Probably not get the job : Was Benko’s remark that the plaintiff would “probably not get the job” when the plaintiff revealed her age sufficient evidence for a jury to find that the defendant stated reasons served as a pretext to hide discriminatory practice?
Make a class employee : Make a class EMPLOYEE with a name and salary. Make a class MANAGER inherit from EMPLOYEE. Add an instance field, named DEPARTMENT
Get to know your member : Follow the instructions in the text closely and use the Web sites provided to search for committee jurisdiction and to find your representative.
Optional functionality: allow the user to print the report : A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock
Creation of a base geometric class : The lab will require the creation of a base geometric class, called Shape, and two sub classes, Circle and Rectangle, that are derived public from the class Shape.
Drafting and adoption of a code of ethics : Drafting and adoption of a code of ethics is one approach of making staff and volunteers aware of various ethical issues and hopefully avoid lapses in ethics. What is a code of ethics, and how can such a document help a nonprofit organization?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Which of the following are valid case statements in a switch

What will following segment of code output? int x = 5; if (x != 2)      System,out.println( "This is true!"); else      System.out.println( "This is false!");      System.out.println("This is all folks!");

  Define two derived classes of the abstract class

Define two derived classes of the abstract class ShapeBase below. Your two classes will be called RightArrow and LeftArrow. These classes will draw arrows that point right and left,

  Build a traffic light system - microcontroller system

Build the whole system with 3 RAG units and three puffin crossing units and build a team to work on this mini-project, be careful in selecting your team member.

  Write a matrix multiplication program

Write a C++, matrix multiplication program which you can instrument to monitor and measure execution time as a function of problem size. Make sure it works in Microsoft Visual Studio.

  Draw the heap

Eric Rowe Starting with an empty minheap, draw the heap after each the completion of the following operations  and repeat for a maxheap (replace removeMin() with removeMax()). Upload your drawings here. Hand drawn is fine:

  A hierarchical jpeg encode decoder for greyscale images

This project is to develop a program that implements a hierarchical JPEG encoder/decoder for greyscale images.

  Write song playlist class-object-oriented design principles

Write a song playlist class in C++ called "PlayList" using object-oriented design principles. The playlist should support the following ADT.The implementation should be based on an array of strings to store the song titles.

  Three or more dimensions

What kind of program, or problem, might necessitate arrays of three or more dimensions?

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

  Write down a program which will calculate and displays min

write down a program which will calculate and displays the min temperature and the maximum temperature for seven days of a week.

  Write a program using vectors and iterators

Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulating it mathematically, eventually outputs your entire phone number. The d..

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