Answer to Question #23532 in AJAX | JavaScript | HTML | PHP for Lungisani

Question #23532
1) Code a java class for an Object SONG, that has as a minimum the following attributes:- SONG Title (a String) , SONG Group/artist (a String ), SONG genre (a String – “Pop”, “Jazz”, “Hard Rock” etc., SONG price (double), SONG duration (int number of seconds). Code all accessor and mutator methods for the SONG class.

2) Code a GUI program that has the following functionality:-

Load SONG’s - Create four SONG Objects (the data is hard coded as literals in your program code) and place the SONG objects in an array. Load SONG’s will always create a new array that holds the same four SONGs.

Display - Display all SONG’s in the array

Add - Add a new SONG object to the end of the array (prompt for the user to enter all data in order to create the SONG object).

Save - Save all the SONG’s in the array to the text file. Name this text file SONGDATA.TXT. The data is to be presented as strings in the text file so that it can be displayed. Do NOT place a path on your text file name.

Exit - Close the GUI and terminate the application
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS