Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use C++ Please answer question 5 (Thank you!) You are expected to create a templated Listdatastructure (up to you on implementation). Subsequentlyyou are to

Please use C++

Please answer question 5 (Thank you!)

You are expected to create a templated Listdatastructure (up to you on implementation). Subsequentlyyou are to create three child classes of this generic Listclass: Set(ensures unique data), Queue (first in first out), and Stack (last in first out) data structures.

Grading Criteria

1. Listclass

o[3 Points] Implementation of basic list interface (e.g. add, remove, find)

o[2 Points] Destructor correctly deletes everything in the list without throwing exception

2. Set class (must inherit from List)

o[3Points] Correctoverride of add/insert (ensures uniqueness)

3. Queueclass (must inherit from List)

o[1 Point] Private inheritance from List

o[2Points] Correct implementation of basic queue interface (e.g. enqueueanddequeue)

4. Stackclass (must inherit from List)

o[1 Point] Private inheritance from List

o[2 Points] Correct implementation of basic stack interface (e.g. push and pop)

5. Demonstration (driver):

oFunctionaltests (positive and negative):

[1 Point] Attempt to add duplicatedata to list

[1 Point] Attempt to add duplicatedata to set (what should happen?)

[1 Point] Demonstrate Enqueue for Queue

[1 Point] Demonstrate Dequeue for Queue

[1 Point] Demonstrate Pushfor Stack

[1 point] Demonstrate Pop for Stack

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

Students also viewed these Databases questions

Question

=+Which associations exist?

Answered: 1 week ago