Additionally you need to write a client cpp file for


You work as a programmer for a startup company and your project manager has given you this legacy code (above) that was written by a programmer who left the company. The project manager needs you to expand the linked_list class to add a new function called found that will accept a value from the client and return true if the value exists in the list.  Note the return type must be bool.

Your project manager also needs you to convert the penguin class and linked_list class to templates so the class can be used by multiple client programs, each possibly using different data types. 

Additionally, you need to write a client .cpp file for testing that creates two objects of the templated linked_list class, each with different data types.  You do not have to create a template for the clients.   

Your program should meet the functional requirements and include a minimum of the following:

  • Add a new function called found that will accept a value from the client and return true if the value exists in the list.
  • The penguin class and linked_list class converted to templates.
  • A client .cpp file that has a main function create an object of the templated linked_list class with one data type and calls all of the functions of that class.  Then, the main function should create a second object of the templated linked_list class with a different data type and use it to call the functions of that class.  Either client should successfully run with the templated classes.

Solution Preview :

Prepared by a verified Expert
Business Management: Additionally you need to write a client cpp file for
Reference No:- TGS01713410

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)