The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 406 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Task #3 Arrays of Objects1. Copy the files Song.java (code listing 7.1), CompactDisc.java (code listing 7.2)and Classics.txt (code listing 7.3) from the Student CD or as directed by yourinstructor. Song.java is complete and will not be edited. Classics.txt is the datafile that will be used by CompactDisc.java, the file you will be editing.2. In CompactDisc.java, there are comments indicating where the missing code is tobe placed. Declare an array of Songs, called cd, to be of size 6.3. Fill the array by creating a new song with the title and artist and storing it in theappropriate position in the array.4. Print the contents of the array to the console.5. Compile, debug, and run. Your output should be as follows:Contents of ClassicsOde to Joy by BachThe Sleeping Beauty by TchaikovskyLullaby by BrahmsCanon by BachSymphony No. 5 by BeethovenThe Blue Danube Waltz by Strauss
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll