CSCI 200 - Foundational Programming Concepts & Design - Fall 2022

Lab 4B - A Linked List Class Test Suite

This lab is due by Tuesday, November 01, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.


Instructions


We will begin refactoring our LinkedList operations from a structured procedural style to a more Object-Oriented approach.

Create a new file called LinkedList.h that will store our Linked List class declaration. Note the naming scheme of our files now. We're using the PascalCase (UpperCamelCase) to denote that this file contains a class declaration (since it's a header) and the name of the class is LinkedList.

The Class Shell

Begin by creating the LinkedList class declaration. This class will represent a LinkedList data structure. It's contained state will be the actual linked list and it will contain the methods to manipulate that state - the linked list.

The UML for the class is described below (with a description of the corresponding use):

Once the class is declared, create the corresponding implementation in a file named LinkedList.cpp.

Again, a test suite has been provided in linked_list_class_tests.zip. This time, the test suite will not compile until the class is declared and the functions are stubbed out.


Lab Submission


Submit your LinkedList.h, LinkedList.cpp file(s).

You will submit your solution to this lab with the rest of Set4. Detailed instructions for doing this are posted in Assignment 4.


This lab is due by Tuesday, November 01, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.