Question: Your program will do the following: Create a list of at least 1 0 songs and artists of your choosing Print Program Title: Random Music

Your program will do the following:
Create a list of at least 10 songs and artists of your choosing
Print Program Title: "Random Music Playlist" (underlined)
Prompt the user to enter the number of songs they want in the playlist "
Generate a list of random songs. For example, if the user wanted a playlist of 5 songs, the playlist should contain 5 songs. Songs in this list cannot be repeated **These songs must be stored in a list.
Print the songs from the playlist to the console
Ask the user if they would like to create another playlist. If yes, run the program again. If no, end the program
Program Design:
You are required to write functions to do the following:
Write a function that prompts the user to enter the number of songs they want in the playlist. This function should return an integer.
The number of songs must be between 1 and the number of songs in your songs list. So, if there are 10 songs in your songs list the number of songs should be between 1 and 10.
Write a function that generates a list of random songs with no songs repeated. This function should return a list of strings as the playlist.

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 Programming Questions!