Question: f4. Implement the classes shown in Figure 1. 5. For each file 1you create, place your name, id number; and date at the top of

 \f4. Implement the classes shown in Figure 1. 5. For eachfile 1you create, place your name, id number; and date at thetop of each source file as comments. [4 marks] 5. The following

\f4. Implement the classes shown in Figure 1. 5. For each file 1you create, place your name, id number; and date at the top of each source file as comments. [4 marks] 5. The following LinearList class methods must be implemented as described: i. Insert adds a new node at the front of the linear list. [3' marks] ii. retrieve returns the data stored in the node at the front of the linear list. [? marks] iii. remove deletes the node at the front of the linear list. [? marks] hr. dispvlariglr displays the data information for all nodes in the linear list. [1 marks] u. destroy deletes all nodesfrom the linear list. [3' marks] It. Add a driver file 3' class with a main method to the project, in main write code to do the following: i. create a new Linear list object with an appropriate name. [2 marks] ii. display contents of the linear list. [1 mark] iii. Insert at least five {5] items into the linear list. [6 marks] Iv. display contents of the linear list. [1 mark] y. retrieve and display one {1} item from the linear list. [3 marks] vi. display contents of the linear list. [1 mark] vii. remove and display one [1] item from the linear list. [3 marks] viii. display contents of the linear list. [1 mark] in. destroy deletes all nodes from the linear list. [2 marks] 1:. display contents of the linear list. [1 mark]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!