Question: C++ !! Using the start project, implement the member functions of the AnyList class as instructed below. Write the declaration in the AnyList.h file where

C++ !!
 C++ !! Using the start project, implement the member functions of

Using the start project, implement the member functions of the AnyList class as instructed below. Write the declaration in the AnyList.h file where indicated, and write the definition in the Functions.cpp file where indicated. AnyList member function getNumOfitems o Returns the number of nodes in the list. AnyList member function insertBack o Parameter: An int to store in the new node. o Traverses the list and insert a new node at the end of the list AnyList member function search Parameter: An int storing an element to be searched. Traverses the list to search for the element passed by the parameter. If the element is found, the function returns true; if the element is not found, the function returnsfalse. Traverse the list using a WHILE loop; stop when you find the element. If the list is empty, print the error message The list is empty. Assumption: All elements are unique. o o o o o AnyList member function commonEnds o o Parameter: An object of the class AnyList The function returns true if the calling object and the parameter object have the same first element AND the same last element. o Example: Calling object: [1, 2, 3], Parameter object:[7,3false Calling object: [1, 2, 3], Parameter object: [7,3,2 false Calling object: [1, 2,3], Parameter object: [1, 3)true There are several test cases already implemented to test your functions. You will need to UNCOMMENT the appropriate function calls in the Testing.cpp file to view results. Below you can find a segment of the expected output. TESTING insertBack... lements inserted Your list is: List is empty lements inserted: 2 Your list is: 2 lements inserted: 7 5 Your list is: 75

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!