Member variable of type string that contains

Assignment Help Basic Computer Science
Reference no: EM131233352

Write a program that uses the class SalariedEmployee. Your program is to define a derived class called Administrator, which is to be derived from SalariedEmployee. You are to supply the following data and function members in the Administrator class:

  • A member variable of type string that contains the administrator's title (e.g., Director, Vice President)
  • A member variable of type string that contains the company area of responsibility (e.g., Production, Accounting)
  • 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 (if the salary is for an administrator, the salary is kept in this variable, not the salary variable in the SalariedEmployee class)
  • A member function that returns each of the variables above
  • A member function which sets each of the variables above
  • A member function called print, which outputs the object's data to the screen

The SalariedEmployee class is to contain the following:

  • Member variables containing the following data: name, ssn, netPay, wageRate, hours, department (the variables wageRate and hours are to be set to private)
  • A member function that returns each of the variables above
  • A member function which sets each of the variables above

Write a program which instantiates employees and administrators (at least 5 employees and 2 administrators).  Write a user interface with a menu to make it easy for the user to enter data into the objects.  Then, once the data is entered, give the user options to change any data for an employee or administrator; and to print an employee's check with the information that was input (name, ssn, netPay, hours, wageRate, hours worked), along with the current date. 

Reference no: EM131233352

Questions Cloud

How does current market rate of interest impact time value : How does the current market rate of interest impact time value of money calculations? How can this aspect alter your current spending, savings, and budgeting patterns?
Which dsm-5 disorder matches the symptoms abby is reporting : If Dr. Smith recommended medications in addition to therapy, which theoretical model would this match? If Dr. Smith completed a free association exercise with Abby, which theoretical model would this match? If Dr. Smith used unconditional p..
Know how management concepts relate : “Know How Management Concepts Relate.” When managing people, describe the significance of understanding both “minority” and “majority” groups as they exist in an organization. Explain how average annual percentage changes in the U.S. population by ra..
Case study examination of the role of the organisation : Describe the role of GS1 abdullah - how they were formed abdullah - the four main types of standard they offer abdullah and the type of products and customers they deal with?
Member variable of type string that contains : A member variable of type string that contains the administrator's title (e.g., Director, Vice President). A member variable of type string that contains the company area of responsibility (e.g., Production, Accounting)
Review and identify furmans legal rights in the situation : Review and identify Furman's legal rights in this situation. Explain the probability that Furman will have to pay American Express for any illegal charges to the account.
Cloud computing represents a change : The CIO anticipates some resistance because cloud computing represents a change in what people are used to and needs your assistance.
Union–management relationship in unionized environment : How might you apply dispute settlement law to a union–management relationship in a unionized environment? Include an example to illustrate your explanation.
Diverse Employees Contribute to GE Lightings Bright Future : Despite the common assumption that manufacturing jobs are disappering, manufacturing companies face a hiring challenge. As experienced worker retire and technology advances, business need bright, hardworking employees who are comfortable with technol..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Theorem for eulerian circuits

(a) Can you produce a similar arrangement for 1, 2, 3, 4, 5, 6, 7? (b) Use the theorem for Eulerian Circuits to show that there is a solution for n numbers if and only if n is odd.

  Government purchases decrease

Assume that government purchases decrease by $10 billion, with other factors held constant, including the price level. Calculate the change in the level of real GDP demanded for each of the following values of the MPC. Then, calculate the change if t..

  Examples of multinational corporations

Choose one large multinational corporation that operates in a number of countries to learn how its public relations activities differ from country to country. Examples of multinational corporations include General Electric, Nissan, Nestle, ExxonMo..

  System that uses contract centralization

Analyze whether abstraction is a necessary concern in a system that uses contract centralization. In other words, are implementation details important if a customer cannot access the system by any means but the service contract?

  Confirm graphically that the solution

Confirm graphically that the solution from part a maximizes the farmer's profit from his land.

  Evaluate the design and development process

Balsamiq and Axure are commercial products that evaluate the design and development process. Select either Balsamig or Axure and describe a situation where that tool would be more effective than the other. Justify your response

  Internet access providers

Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?

  Mips assembly program

MIPS Assembly Program: Help writing this function

  Data warehouse vs data mining

Please write a  paper for me on Data warehouse vs Data mining (8pages APA format)

  Which operations can be implemented reasonably efficiently

Can the database system be made more efficient by using one or more additional BSTs to organize the records by location?

  Trie in java to implement simplified search engine

Write small program to use trie in Java to implement simplified search engine for one page of a small website. Use all the word in the page of the site as index terms.

  Prepare a plan for purchasing and installing new computers

You are the technical director for a company with 1500 employees. The Chief executive officer has asked you to prepare a plan for purchasing and installing new computers (including desktops & laptops)

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