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

  Levels of the cmmi process improvement approach

1. Name and Describe two (2) U.S. based compliance laws that exist. 2. Discuss the levels of the CMMI process improvement approach.

  Create the work breakdown structure

Create the work breakdown structure (WBS) as shown in the textbook listing the tasks that will need to be completed to meet the project's objectives.

  Programming in a language

When you are programming in a language, which of the following CANNOT be used as a variable name?

  Explain ways in which inconsistent values arise

Why are inconsistent values in foreign keys particularly troublesome?

  How to identify duties of the lab employees

Assume that you decide to set up a computer forensics laboratory. Submit a planning report for your lab with the following components.

  How does the monitor fix this problem

How does the monitor fix this problem?

  Describe in detail the construction of a triode

Describe in detail the construction of a triode. To what use a triode may be put? How does it differ from a BJT?

  Robot battle tank to battle against other tanks

Robocode is a programming game, where the goal is to develop a robot battle tank to battle against other tanks. You program a robot using the Java language, put it onto a battlefield and let it fight against opponent robots created by other progra..

  Use the restricted form of the mixed model

Obtain the expected mean squares for this situation and modify the previous analysis appropriately. Use the restricted form of the mixed model.

  Is this papers account of benefits of xbrl similar

The deliverable is a two to three page paper that includes a brief summary of this material, and consideration of the following idea. Is this paper's account of benefits of XBRL similar to the book's.

  What would be shared among those processes

What would be shared among those processes?

  Item number in the inventory

Write a console program that will ask the user for an item number in the inventory and display the name of that item. Stay in a loop so that the user may enter the item number multiple times. Use the letter E to exit the application. Show an error me..

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