subject

(Using Class) Problem Specification:
An employer would like to maintain a linked list for employees, the data stored is an employee number (a positive integer), number of years on the job (a short positive integer) and a yearly salary (a float). Would like you as the programmer to define the required classes in header files, and the methods in implementation files.
The methods used are:
Insert: Which inserts elements at the end of the list, which is the most recent input is at the end of the list.
Remove: which deletes the first element in the list.
Display: its purpose is to display the list but needs the assistance of a Print function.
Print: a recursive function that prints all the elements of the list, last to first.
Clear: a function that deletes every Node from the list and leaves the list empty.
Requirements
Define a class Node containing the employee’s data and a pointer to the next Node
Define the necessary functions to access, instantiate, and set the data in the class Node.
Define a class LinkedList that has only one data member, a pointer to a Node, and the necessary member functions in addition to the member functions above.
All mutator functions parameters are constant referenced, and all accessor functions are constants.
Functions not accessed by the client, should be private.
Grading criteria:
10 points Sufficient comments including specifications
5 points Menu is used to display options and calls methods.
5 points Guards are used.
10 points insert performs it task correctly.
5 points remove performs it task correctly.
5 points display performs it task correctly.
10 points print is recursive and performs it task correctly.
10 points clear performs it task correctly.
10 points all requirements above are included.
15 points Program runs correctly and performs its task correctly.
5 points test run to demonstrate all activities is handed-in.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:50
Type the correct answer in the box. spell all words correctly. which view of report creation allows you to customize the report before the database program creates it? creating a report in allows you to customize the report before the database program creates it. pl asap
Answers: 1
question
Computers and Technology, 22.06.2019 13:50
The instruction ishl (shift left integer) exists in jvm but not in ijvm. it uses the top two values on the stack, replacing the two with a single value, the result. the sec- ond-from-top word of the stack is the operand to be shifted. its content is shifted left by a value between 0 and 31, inclusive, depending on the value of the 5 least signifi- cant bits of the top word on the stack (the other 27 bits of the top word are ignored). zeros are shifted in from the right for as many bits as the shift count. the opcode for ishl is 120 (0x78).a. what is the arithmetic operation equivalent to shifting left with a count of 2? b. extend the microcode to include this instruction as a part of ijv.
Answers: 1
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
You know the right answer?
(Using Class) Problem Specification:
An employer would like to maintain a linked list for emp...
Questions
question
Physics, 11.11.2019 23:31