Question: Write a program that asks for the user's top 5 favorite songs. Then, ask the user if they want to add a song to this
Write a program that asks for the user's top favorite songs. Then, ask the user if they want to add a song to this list.
If they say "Yes", ask for the name of the song, as well as what ranking it should be at in the top songs. Note: This list should not contain more than songs, so you must get rid of any songs that aren't in the top
If they say No ask the user if they want to remove a song. If they say "Yes", ask for the song they want to remove and if it exists in the list, remove it Otherwise, print "This song does not exist in the list".
At the end of your program, the user's top songs will be printed. If the user only has a top songs, print only these songs.
Ex: bold is user input
Cupid As It Was Celestial yes, and? Saturn Do you want to add a new song? Yes Song name: AntiHero Ranking: Cupid As It Was AntiHero Celestial yes, and?
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
