Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5 points Status: Not Submitted In this exercise, you will create a Top 10 Musicians of all time list. A Musician class has been built
5 points Status: Not Submitted In this exercise, you will create a Top 10 Musicians of all time list. A Musician class has been built that takes the name, number of albums sold, and number of weeks that artist has been on the Top 40 list. The Musician class also has a boolean instance variable isplatinum that determines if the musician has gone platinum, meaning they've sold over a million copies of the same record. The Billboard class currently has a top1e ArrayList that will store the top 10 musicians as a list. In the Billboard class, create an add method that will add a musician to the list if there are less than 10 musicians in the list, and if the musician has Platinum status. If there are 10 musicians in the list, then the method should call the replace method. Otherwise, a message should be displayed to the user that the musician could not be added to the top10 list. The replace method compares the total number of weeks that the musician has been on the top 40 list. If the musician with the lowest number of weeks on the top 40 is lower than the number of weeks on the top 40 of the new musician, then the old musician is replaced by the new one. There should be a message to the user that the old musician has been replaced by the new one. Otherwise, the user should be notified that the new musician cannot be added because they don't have enough weeks on the top 40. This method should be created in the Billboard class Use the BillboardTester class to test if the new musicians being added are being correctly replaced, or omitted from the Top 10 @ 7.4.8: Billboard Top 10 SAVE SUBMIT + CONTINUE 1 import java.util.ArrayList; 2 public class Billboard 3- { private ArrayList
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started