Declare a pure virtual function in the employee class

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

Define 3 classes:

Employee, FulltimeEmployee and Manager, with the Employee class an abstract base class, FulltimeEmployee class derived from the Employee class, and Manager class derived from the FulltimeEmployee class.

Declare a pure virtual function in the Employee class for calculating the employee's salary.

For fulltime employees, salary is calculated from a base salary + years of services * 5% increment each year.

For managers, salary is calculated from a base salary + years of services * 5% increment each year + the number of direct reports * 10%.

Reference no: EM131145331

Questions Cloud

Convert the three hexadecimal numbers to binary : Convert the following three hexadecimal numbers to both binary and decimal. (Hint: it is probably easier to convert hex to binary first, then convert binary to decimal.) Show your work: 3e 3e0 3e00.
Onboarding is an important function of HR : Onboarding is an important function of HR and the successful implementation of new employees' transition into the organization. Review the Onboarding material located in the Research Guide and provide a description of onboarding and how it should wor..
Proper formulation of strategy : Why has strategic management become so important to today's corporations? What information is needed for the proper formulation of strategy? Why?
Which contract type is the most appropriate for the product : In 750-900 words, address the following for each of the 5 bulleted items listed in the assignment description: Which contract type is the most appropriate for the product or service purchase? How would you effectively justify your selection to other ..
Declare a pure virtual function in the employee class : Declare a pure virtual function in the Employee class for calculating the employee's salary.
Guidelines address corporate ethical behaviour for employees : List the sorts of policies and guidelines a firm would need to follow in undertaking their initiative or opportunity, and very briefly describe how these policies and guidelines address the possible ethical issues and risks you have identified above...
What steps did alcoa take to try to increase the companys : How much cash did the nonfinancial (that is, nonbank-like) firms in the Standard and Poor's 500 have at the end of 2009? How big an increase in cash did this represent over the prior year?
Discussion of the longer-run impact of current account : What do you think? How would these considerations affect the exchange rate and output effects of fiscal policy? Do you see any parallels with this chapter's discussion of the longer-run impact of current account imbalances?
Explain your reasoning for the stance that you selected : Explain your reasoning for the stance that you selected. Reflect on whether your stance would be different if you were viewing it through your "business lens" versus your "Christian lens." Should these views converge How?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Which of these sorting algorithms only works on integers

What is the third value in the postorder traversal of this binary search tree? What is the third value in the preorder traversal of this binary search tree?

  Square root of a number n

USING C++ the square root of a number N can be approximated by repeated calculation using the formula NG=.5(LG+N/LG) where NG stands for next guess and LG stands for last guess

  Difference between classes and struct in c++

what's the difference between classes and struct in c++?

  For this program reads the first 11 characters

E main for this program reads the first 11 characters from input, saving them. It then reads 26 short integers into |vals|, and passes them and the characters to EmbedWatermark, which subtly alters the contents of vals to contain the characters. A..

  Write an automated checkout program to expedite customers

A local department store hires you  to write an automated checkout program to expedite customers in a hurry. The  checkout line can only accept five items for any one purchase

  Returns the memory address of the first element

Assume that there's a function double* getMemoryForDouble (int n) that returns the memory address of the first element of a contiguous block of memory available for storing n doubles.

  Determines the access privillege of a derived class

The base class access specifier determines the access privillege of a derived class to its base class

  Change the while statement to a do-while statement

Change the while statement to a do-while statement. Enhance the program so it uses a while or do-while loop that lets the user enter more than one set of test scores.

  Program to declare array alpha of components of type int

Write C++ statements to do the following: Declare an array alpha of 15 components of the type int. Output the value of the tenth component of the array alpha.

  Display a report showing the energy produced

Open the data file Energy.dat and read each column into an array - Display a report showing the energy produced and the percentage of the grand total energy for each of the 13 types of energy for a given year. Prompt the user to enter the year.

  Explain conditional expressions in the c language

What if the initial value assigned to a is 13, not 3? What happens with this code and why does this occur? What does this tell you about setting up conditional expressions in the C language?

  The process function will then need

The process function will then need to find the time the person waited by calling the time function and finding the difference between the start and end timestamps. Save this time to an accumulator so that in the end you can find the average wait tim..

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