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

  Printed circuit board

What is a printed circuit board on which the CPU, RAM chips and other electronic circuit elements of a digital computer are frequently located?

  Prepare a detailed design document for the user interface

Your design document should not exceed ~25 pages in length, excluding references. You will need to reference all literature, applications and websites using the APA 6th edition referencing style.

  Format the percentage column to percent with no decimal

Format the Percentage column to Percent with no decimal places

  Explain the difference between portable internet access

Directions: Please provide detailed and elaborate responses to the following questions. Your responses should include examples from the reading assignments, if possible. Your answer to each question should be at least 250 words in length and uti..

  What steps can be taken during implementation of a s/w

What steps can be taken during implementation of a software system

  As a health information management manager

As a Health Information Management manager, you will manage the personnel within your department. Understanding and following the various federal laws governing employment will be your responsibility.

  How many bits are needed to encode book in ascii with parity

Estimate how many characters, including spaces, a typical computer-science textbook contains. How many bits are needed to encode a book in ASCII with parity?

  Computer viruses eventually affect almost every computer use

Consider that computer viruses eventually affect almost every computer user. For this discussion, you must research one interesting fact about each of the following subjects about computer viruses.

  How many hours does he have to work

Dave works at the mall part-time for $9 per hour and notices that 20% of his check is deducted for taxes. If he wants to take home at least $200 per week, how many hours does he have to work?

  How can you apply this to your project

How can you apply this to your project?

  Write the definition of a class clock

Write the definition of a class Clock . The class has no constructors and three instance variables. One is of type int called hours , initialized to 12 , another is of type boolean called isTicking , initialized to true , and the last one is of ty..

  Find that competition precedes cooperation

In a self-organizing system that involves competition as well as cooperation, we find that competition precedes cooperation. Justify the rationale behind this statement.

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