Question: Part B: 4 . 5 points ( with Album class ) 1 . From the result in step 5 above, there may be songs from

Part B: 4.5 points (with Album class)
1. From the result in step 5 above, there may be songs from the same album that made it to the
top 100 song chart. (Say, Taylor Swift has two or three top 100 songs from the same album).
There may also be multiple songs from Taylor Swift from multiple album that made it to the
top 100 song chart.
2. Adjust your code from Part A, which accommodate the multiple songs from the same album,
and multiple songs from multiple albums by creating a class call Album and have it used in
the part A of the code. Please review the card, deck and poker card example from our
textbook for inspirations. YOUR CODE FOR PART B has to be based on PART A.
3. Write a function and search for an artist name (input is the artist name), say, Taylor Swift
against topsongs[], and display all the artist name, Album name and Song name.
Example of the output.
Artist Name: Taylor Swift,
Album Name: Lover, Song Name: Lover, You need to calm down,
Album Name: Christmas Tree Farm - EP, Song Name: Christmas Tree Farm

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!