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 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 songs, the playlist should contain 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 and the number of songs in your songs list. So if there are songs in your songs list the number of songs should be between and
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
