Member variable of type string that contains administrator

Assignment Help Basic Computer Science
Reference no: EM131240305

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: EM131240305

Questions Cloud

Work of an adaptive filter based on teaching : This signal in digital form is not at your disposal so try to use a properly modified network for other signals, for example, filter a sample of sound in the form of a WAV or MP3 file. How can a similar adaptive filter network be used for picture ..
Evaluate one of the neurotransmitters covered : Evaluate one of the neurotransmitters covered in this week's readings. Explain the role it plays in modulating responses to a drug of abuse. For example, you could choose the acetylcholine receptor system and discuss the role this neurotransmitter..
Describe the course to potential students : Pretend that your instructor has asked you and two friends to create a Web page to describe the course to potential students and provide current class information (e.g., syllabus, assignments, and readings) to current students.
Issues being encountered by service provider selected area : Task: Select an Australian based automobile company. This business should have its operations in the Australian market and should have a legitimate website. Highlight the problems/issues being encountered by the service provider in that area
Member variable of type string that contains administrator : 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 cl..
How did that individual adjust to death : How did that individual adjust to death? How well did the adjustment fit the Kubler-Ross theory? What changes would you make to the Kubler-Ross theory based on your example?
Calculate correct ending inventory balance on december 31 : Gotham company reported a december 31 ending inventory balance of $412,000. - calculate the correct ending inventory balance on December 31.
Why best training results are observed for moderate values : Explain why the best training results are observed for moderate values of learning rate (neither too small nor too high). Try to confirm your explanation by experimenting with our program. Plot learning rate versus training performance after a set..
Write a letter to the editor stating your position : However, many schools found the expense of conducting the tests and notifying families by mail to be too much. Write a letter to the editor stating your position on whether the BMI testing should or should not continue in the state of Arkansas.

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