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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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