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

  Actions for network devices, topologies, and network attacks

Identify the malicious threat sources to physical security and their corresponding countermeasures

  Define the sql to create a member table

The uid is a unique login name. Everyone must have a different email. Passwords are stored in encrypted form, and status can be either active or inactive.

  Why is programming efficiency important

Taking into account the availability of today's powerful computers, why is programming efficiency important? Consider how the number of lines of programming instructions impact the number of CPU processing cycles?

  Strategic planning and sales forecasting

Innovation activities influence strategic planning and sales forecasting. Is there a single best generalized innovation strategy that will optimize strategic planning and sales forecasting? If yes, explain the strategy. If no, explain why not.

  Preparing for a business meeting

A project leader has made notes about covering the following items at the quarterly budget meeting. Use a word processor to develop an agenda by putting these items into a logical order and rewriting the items, where necessary, to give phrases a m..

  Describe the purpose and activities

Describe the purpose and activities

  Population distribution is exactly normal

The most important condition for sound conclusions from statistical inference is usually

  Demand function

Whe the price of meat Rp 30.000,00 / kg, the amount demanded 50 kg. At the time the price rose to USD 40,000.00 / kg the amount requested to be 30 kg. Demand function is

  Display an appropriate error message

User Radio Buttons with a shared event procedure and a Select Case to determine which text box (State name or abbreviation) should have the focus and which should be set to Readonly.

  Think of a programming task-other

Write a 200- to 300-word short-answer response for the following: Think of a programming task-other than the individual or team assignments in this course-in which you would choose to use a data file. Write the code to read or write the file. Expl..

  What are the three types of goals

Needs to be 200-250 words with references at the end of each questions. 1. What are the three types of goals, and what are different kinds of plans?

  Write visual logic code to convert fahrenheit to celsius

How do I write visual logic code to convert Fahrenheit to celsius?

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