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


![top of each source file as comments. [4 marks] 5. The following](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670fd5a40b8e8_979670fd5a3cfd77.jpg)
\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
Get step-by-step solutions from verified subject matter experts
