Question: Modify RawLinkedList.cpp: 1. (10 points) Add function append() to append to a data item to a linked list. 2. (10 points) Add function deleteHead() to

Modify RawLinkedList.cpp:

1. (10 points) Add function append() to append to a data item to a linked list.

2. (10 points) Add function deleteHead() to delete the node at the head of a linked list

3. (10 points) Add function search() that searches for a data item in a linked list, it must return the node containing the data item or null if the data item is not in the linked list.

4.Extra Credit (10 points) Add function deleteLast() to delete the last node in a linked list

5.Extra Credit (10 points) Add function remove() to remove a node containing a value specified in a parameter from a linked list. The function must return a pointer to the node containing the value specified, so that it can used and disposed properly.

6. (10 points) Test all functions created.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!