CS120
Assignment #12

Due on or before Friday April 18 at 11:59 PM.

For this assignment we will continue to work with linked lists. Linked lists are the fundamental dynamic data structure. Dynamic means a data structure that can change size (add or remove data) while the program is running. In contrast arrays are a static data structure - once created, the size of an array can't change.

The code for a simple linked list is here. This code creates a linked list with three data elements in it. There is a pointer called "head" that points to the beginning of the list.

The node class in the text is similar to this code and reviewing it may be of assistance in completing the assignment.

Make the following changes to the program:

Write a main() function that demonstrates how each of these functions work.

Turn in: A copy of your program code and sample output demonstrating that it works. All items should be sumbitted via Canvas.