Create a program that maintains a list of employees

Assignment Help Computer Engineering
Reference no: EM132154707

Update the employee class that we created in class on March 10, 2017. Update the class to do the followings:

o Include one additional data member (empID - a private data member) which will contain a class-assigned employee ID. This new data member will contain a numeric value assigned by the class and is unique to each employee. The user should not be able to alter the value of empID but should be able to retrieve it.

o To create an object that represents a valid employee, the user must provide an employee name and a hire date. The user should have the option to provide a value for "hours" when an object is created. If a value for "hours" is not provided, "hours" should default to zero.

An employee ID can be assigned to an object by the class only when a name and a hire date are provided. Create a constructor to enforce this rule.

o The data member hireDate must be constant. The user should not have the option to change the hireDate but should be able to retrieve its value.

o Make sure that all functions in the employee class that do not alter the data are constant functions.

o Add a new member function to the class employee that displays all the information pertaining to the employee. This function will make it easier for the user to display the contents of an employee object by simply using this member function instead of calling 6 different member functions (getName(), getHours(), getEmpID(), getMonth(), getYear(),getDay()).

Create a program that maintains a list (an array) of employees. The user should be able to add employees to the list. When adding an employee to the list, make sure that the program searches the list by employee name to make sure that the employee does not already exist. If the employee already exists, let the user know that the employee is already on the list and display the employee's information.

Note: you will need to create an array of pointers to objects of the employee class because you do not have a default constructor. The declaration will be as follows:

Employee * empList[maxSize];
Where maxSize is a constant integer that contains the size of the array.

ps: create a new class instead of using the existing class mentioned.

Reference no: EM132154707

Questions Cloud

Write the constructor method : Write the constructor method, init (self, acctNum acctName, acctBal) which creates an account with the given values for the instance variables.
Give an algorithm to update the mst when the weight : Let G be an edge-weighted, undirected, and connected graph. You are already given the MST, T, of G.
What was the surrender charge sophia had to pay : Assume that the contract value had not increased or decreased because of investment performance. What was the surrender charge Sophia had to pay?
What is the project irr : The cost of capital is 13%. What is the project's IRR?
Create a program that maintains a list of employees : Create a program that maintains a list (an array) of employees. The user should be able to add employees to the list.
What is the future value at the end of year : What is the future value at the end of year 15 of $10,000 deposited today into an account that pays interest of 4.5% p.a., but with monthly compounding?
Undertake investment opportunity : However, a bank offers to lend you up to $100,000 at 8% with no conditions. Should you undertake this investment opportuni
Did the command you entered immediately before echo : You type in echo $ into the terminal and it prints out 127. Did the command you entered immediately before echo $? execute successfully?
What is the cash flow to shareholders : Peggy Grey's Cookies had net income of $272,800. The firm paid out 28 percent of net income to its shareholders as dividends.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Develop a proposal for each of the given approaches

Develop a proposal for each of these approaches: insourcing, outsourcing, and a combination of the two. Present the pros and cons or benefit analysis for each of the 3 proposals.

  Describe how you can use q to scan s to see

Suppose you have a stack S containing n elements and a queue Q that is initially empty. Describe how you can use Q to scan S to see .

  Give a two to three paragraphs explaining soap

Simple Object Access Potoccol. How is SOAP linked to XML and HTTP? Assume that your readers are familiar with browsing the internet, but they have no technical knowledge of how it works behind the scene.

  List operation modes that can sped up by parallel processing

List the operation modes that can be sped up by parallel processing. List the operation modes that can be used for encipherment of random-access files.

  Create a form button named create resume

Create a form button named Create Resume. When clicked this button should call a function that generates a new Web page displaying a resume based on the user input.

  How net neutrality will affect data networks

Based on your article review and the assigned reading, discuss how net neutrality will affect data networks and the availability of information to businesses.

  Suggest the other protection scheme which can be used more

for this assignment you will choose one of the following optionsoption 1 file access write a 2-page paper that

  Develop an er diagram for the given scenario

In this assignment, you will develop an ER diagram for the given scenario. To complete this assignment, you will need MySQL Workbench. MySQL Workbench is available for free download at www.mysql.com under Downloads (GA) tab.

  Case studies of mainframe to client-server engineering

Research the literature and/or Internet sources to find one or more papers that discuss case studies of mainframe to client-server reengineering. Present a summary.

  Different types of personnel are needed to staff an it

different kinds of personnel are required to staff an it department depending on their it strategy. for the two

  What type of addess is used to forward the datagram

Suppose a data packet (datagram) is sent in the Internet from a source station (computer) to a destination station.

  Explain the operation of the modified register

One input of the NAND gate receives the clock pulses from the clock-pulse generator. The other input of the NAND gate provides a parallel-load control. Explain the operation of the modified register.

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