Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a song class that contains all of the data elements found in your text file of choice. Create a program that allows you to

Create a song class that contains all of the data elements found in your text file of choice.

Create a program that allows you to print out the information in order of popularity.

The program should print out the list of tracks in random order to simulate a shuffled playlist.

Extra credit:

Create a function that allows you to remove a song.

Create a function that allows you to move a song to a given position

Create a function that allows you to insert a song at a given position in the python list.

Text File "RoddyRicch.txt" contents below- * last item is the popularity index from 1-100

The Box Roddy Ricch Please Excuse Me For Being Antisocial 196652 99 Ballin' (with Roddy Ricch) Mustard, Roddy Ricch Perfect Ten 180434 90 High Fashion (feat. Mustard) Roddy Ricch, Mustard Please Excuse Me For Being Antisocial 220486 84 Peta (feat. Meek Mill) Roddy Ricch, Meek Mill Please Excuse Me For Being Antisocial 198848 84 Start Wit Me (feat. Gunna) Roddy Ricch, Gunna Please Excuse Me For Being Antisocial 158691 80 Tip Toe (feat. A Boogie Wit da Hoodie) Roddy Ricch, A Boogie Wit da Hoodie Please Excuse Me For Being Antisocial 185806 78 Bacc Seat (feat. Ty Dolla $ign) Roddy Ricch, Ty Dolla $ign Please Excuse Me For Being Antisocial 172320 79 Project Dreams Marshmello, Roddy Ricch Project Dreams 167898 78 Down Below Roddy Ricch Feed Tha Streets II 224002 78 Die Young Roddy Ricch Feed Tha Streets II 157656 76

The language is C++

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions