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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment