Please read the remarks about programming problems for this course.


Task

Read Chapters 18 and 19 in Fundamentals of C++ Programming (and any previous chapters as needed) to refresh your memory of programming C++ linked structures. Section 19.2 provides an implementation of a generic singly linked list. As an exercise to reacquaint yourself with C++, this assignment has you enhance this generic class with additional functionality.

Organization

The files linkedlist.h, intlistmain.cpp, and stringlistmain.cpp comprise the original code for the generic list.

Responsibility

This is an individual assignment; it should represent your effort alone. This means you should not look at others' code, nor should you share your code with others. If, for whatever reason, you are unable to complete this assignment by yourself, you may partner with one other person in this class to complete the assignment. This team of two should submit one assignment to eclass with both names in a comment at the top of the source code. This assignment is worth 10 points, and students working working in a team of two will divide the possible points, with each student receiving a maximum of five points each.

Details

You should modify linkedlist.h to enhance the LinkedList class to add the following methods:

You should subject your class to extensive testing to verify its correctness. You may use the file simpletest.cpp as a starting point for your testing.

Submission

Submit your completed enhanced linkedlist.h C++ source file to http://eclass.e.southern.edu. Be sure your name appears within a comment as the first line in each source file you submit.