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

  Would a company choose to use a satellite signal

Provide a hypothetical situation for each signal type that illustrates how it could be, or is being, used in a WAN. In what circumstance, for example, would a company choose to use a satellite signal?

  Design an algorithm in pseudocode to solve

Design an algorithm in pseudocode to solve this problem. Make sure to include steps to get each input and generate each output

  Hard drive on a traditional tower computer

How do you replace a hard drive on a traditional tower computer? If someone could walk me through the steps to install and setup, that would be very helpful! Thank you in advance

  What is a front end/back end db

What is a front end/back end DB?.

  Write an application that prints the following diamond shape

(Diamond Printing Program) Write an application that prints the following diamond shape. You may use output statements that print a single asterisk (*), a single space or a single newline character. Maximize your use of repetition (with nested for..

  Describing online services provided by selected companies

Identify and briefly describe the online services provided by the selected companies (e.g. online catalogue search, online information search.

  Fill in the missing cells of the table

Test that there is no association between gender and the likelihood of trying a low-fat diet. Summarize the results.

  Start menu to find programs

You're working with a typical user who doesn't know much of ANYTHING about computers, let alone Windows. They're notorious for losing track of documents they worked on, and they hate having to go into the Start menu to find programs. List three tw..

  What presentation issues on this machine have to be addresse

What presentation issues on this machine have to be addressed for it to exchange integer and string data with the rest of the world

  Privacy and security issues are inherent in data storage

Privacy and security issues are inherent in data storage. Let's consider the question of who owns the data about a particular person: medical, credit, personal, financial, consumer information, etc.?

  Implement a contractionary monetary policy

By how much has the money supply increased or decreased? If the money multiplier is 5, how much money will ultimately be created by this event? If the Fed wanted to implement a contractionary monetary policy using reserve requirement, how would that ..

  Examples of inelastic traffic

Provide three examples of inelastic traffic not discussed in the text and validate their inclusion as inelastic. Analyze the characteristics of elastic traffic to determine why this is used on the Internet.

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