Define Class Called List Hold List Values Type Double Model Class Definition Class Tempera Q37078418

Define a class called List that can hold a list of values oftype double. Model your class definition after the classTemperatureList given in Display 11.10, but your class List willmake no reference to temperatures when it outputs values. Thevalues may represent any sort of data items as long as they are oftype double. Include the additional features specified in Self-TestExercises 21 and 22. Change the member function names so that theydo not refer to temperature.

Add a member function called get_last that takes no argumentsand returns the last item on the list. The member function get_lastdoes not change the list, and

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.