Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

These are the other 2 files that are required: please do not change them this is the driver file this is the string list header

image text in transcribed

image text in transcribed

These are the other 2 files that are required: please do not change them

this is the driver file

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribed

image text in transcribed

this is the string list header file:

image text in transcribed

Please write the code in c++

Also please please implement numerous amounts of comments so that I could understand whats going on.

Problem: Implement an interface that manipulates a list of strings. You will be provided with the following files on TRACS (Resources/PA#5 provided code): StringList.h containing a class declaration, set up for a linked list representation. You will be responsible for providing the StringList.cpp file, including the implementation of the StringList member functions (described below): StringList and StringList: creates an empty list, and deallocates all the nodes in the list, respectively. add(string str) Adds a new node containing str to the end of the list. display(): displays the strings in the list to the screen, one string per line. findFirst(string str): returns the index of the first node which contains the string str (like linear search). Returns -1 if not found. Does not change the list! findLast(string str): returns the index of the last node which contains the string str. Returns-1 if not found. Does not change the list! remove(int position) removes the node at the given position from the linked list. Returns true if successful, otherwise false (if the position is not valid for the list). reverse(): reverses the order of the values in the stringList. Hint: use 3 temporary pointers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions

Question

Were they made on a timely basis?

Answered: 1 week ago

Question

Did the decisions need to be made, or had they already been made?

Answered: 1 week ago

Question

When there was controversy, was it clear who had the final say?

Answered: 1 week ago