Question: Create a Stack class that inherits from your SinglyList or DoublyList class Using C++ . Note: Your SinglyList or Doubly list class will need to

Create a Stack class that inherits from your SinglyList or DoublyList class Using C++ .

Note: Your SinglyList or Doubly list class will need to be able to hold nodes that are of the type Song. Meaning objects of the type Song.

Implements the following functions:

Push

-- pushes item on the stack

Pop

-- pops the last item off of the stack

Use the code from the favorite Song assignment to:

Push all the favorite songs onto the stack

Push the following songs onto the stack:

--Artist: Drake, Title: "God's Plan", Genre: hip-hop, Duration:4.03

--Artist: Drake, Title: "look a live", Genre: hip-hop, Duration: 3.35

--Artist: SZA, Title: "Love Galor", Genre: RnB, Duration: 4.44

Pop all the last three songs off of the stack.

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!