Specifications:

1.Create a new project named COSC240 _< your username>_Project3.

2.This project is asking you to create a list of songs using an array and after that you should be able to sort the songs based on different subjects.

3. Design a class Song based on the UML diagram. Song class contains a list of fields to describe a song. The duration field is a float number giving the length of the song in minutes. The Song constructor will create a song with the fields set to default values (String to , float to 0.0, int to 0). The setSong method will assignment the parameter values to the corresponding fields if the parameter value is a valid value. The toString method will return a String representation of the song information (including all the fields) in a formatted way. see image.

4.Design a class SongList based on the UML diagram. SongList contains a song array which can hold a MAX (a static final field to specify the length of the songList array to be created) number of songs. The size field is used to keep track how many songs have been added into the songList so far. For the sorting method you can use either bubble sort or selection sort to sort your songs in the list. see image.

5.Design a Tester class with a static test method to test your song list. First you add a bunch of songs (at least 7) to your list, and then print out all the songs in your list. After that you can call different sort methods and print out the songs after each sort method call. Please also test your findSong() method to make sure it does return the right index of the song you are looking for.

6.Hints: Test your Song classes before integrating them into the SongList class.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.