Computers and Technology
Computers and Technology, 18.03.2021 01:20, jason9394

(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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:10, reyescarlosivan0
Match the terms in the hlookup syntax with their explanation. a. lookup value b. data table c. row index d. mode 1. name of the table that contains the value 2. specifies if an exact match must be found 3. value to be searched 4. name of the row that contains the value
Answers: 1
image
Computers and Technology, 21.06.2019 17:20, sumitshekhar348
The liang book has an example called which is a javafx application that reads the javabook database using a preparedstatement object. using it as a guide, create a similar application called findbooks. it will read a list of authors from the bookdb created in problem 1 and display them in a listview. if the user selects an author, it should display the author's book titles in a textarea.
Answers: 2
image
Computers and Technology, 23.06.2019 00:50, AmbitiousAndProud
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
image
Computers and Technology, 24.06.2019 01:00, kkruvc
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
Do you know the correct answer?
(Using Class) Problem Specification:
An employer would like to maintain a linked list for emp...

Questions in other subjects:

Konu
History, 17.12.2020 17:50
Konu
Computers and Technology, 17.12.2020 17:50
Konu
Mathematics, 17.12.2020 17:50