Question: The replace method compares the total number of weeks that the musician has been on the top40 list. If the musician with the lowest number

 The replace method compares the total number of weeks that the

The replace method compares the total number of weeks that the musician has been on the top40 list. If the musician with the lowest number of weeks on the top40 is lower than the number of weeks on the top40 of the new musician, then the old musician is replaced by the new one. If the musician is replaced, there should be a message to the user using this format: The musician Pink Floyd has been replaced by Tracy the Turtle. Otherwise, the user should be notified that the new musician cannot be added because they don't have enough weeks on the top40. For example: Sorry, Alex Eacker has less weeks in the Top 40 than the other musicians. 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

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