Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Page 3 of 4 Introduction: linked list a popular data structure for many applications. Apps such as Tinder and Spotify are good real world examples

Page
3
of 4
Introduction: linked list a popular data structure for many applications. Apps such as Tinder and
Spotify are good real world examples of the applications of linked list. In this lab, you are asked
to create a Spotify app that plays a song list.
Important: Only import the song_list.txt to create the linked list, and save your final list to
song_list.txt. DO NOT access your song_list.txt for anything else. Your program should
continue running until the user chose option E.
1. Create a node class and linked list class using the code provided in import.py
2. You are given a song list (song_list.txt), fill in ten songs to this list.
3. Create a linked list of the songs from your song_list.txt
3. Display this menu:
-----------------------------------
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
Execution example:
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
A #user input
Playing
Scientist Coldpaly 2001
Crystal Ball Kenae 2006
Fix you Coldplay 2005
X&Y Coldpkay 2005
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
B #user input
Enter the song in this format: Song,Artist,Year
What if, Coldplay, 2005 #user input
Song added
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
A #user input
Playing
Scientist Coldpaly 2001
Crystal Ball Kenae 2006
Fix you Coldplay 2005
X&Y Coldplay 2005
What if Coldplay 2005
Enter the song in this format: Song,Artist,Year
What if, Coldplay, 2005 #user input
Song added
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
C #user input
Enter the name of the song:
X&Y #user input
X&Y is deleted
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
A#user input
Playing
Scientist Coldpaly 2001
Crystal Ball Kenae 2006
Fix you Coldplay 2005
What if Coldplay 2005
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
D #user input
Enter the song to start
Crystal Ball #User input
Playing
Crystal Ball Kenae 2006
Fix you Coldplay 2005
What if Coldplay 2005
Music play simulator
A. Play all
B. Add a song
C. Delete a song
D. Start playing from a song
E:Exit
E #user input
Music play simulator off

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_2

Step: 3

blur-text-image_3

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions