CS120
Lab #12

Due at the end of lab.

Chapter 8 in the course textbook contains a great discussion of implementing a linked list. You should read that chapter before starting this lab and refer to it while you are working on this lab.

For this lab you are to build a linked list. Each node (or item) in the list should contain a single data value of type double. This value must be private. You may name this value whatever you want, but in this document it will be referred to as xxx. Each node in the linked list should also contain the following methods:

You will also need to make a main() function that creates a list of nodes and exercises functionality specified above in order to test your program. Be sure to thoroughly test your code. Provide a printout demonstrating all behavior specified above. It is recommended that In demonstrating that your code works, you should use a list containing at least 8 nodes.

Turn in: A copy of your code and sample output demonstrating that your linked list behaves as specified. Place your sample output in a file named Lab12output.txt Submit a copy of your code and your Lab12output.txt file to Canvas.