Question: 1 . Declare an array of Strings, called cd with a size of 6 . 2 . Fill the array by creating a new song

1. Declare an array of Strings, called cd with a size of 6.
2. Fill the array by creating a new song with the title and artist and storing it in the appropriate
position in the array. You need to read this information from the file Classics.txt that is
provided.
Classics.txt
Download Classics.txt
You will need to read the title and the artist and merge them together before storing
them into the array. You will need to merge the word by in between the two strings.
3. Print the contents of the array to the console and to an output file.
4. Compile, debug, and run.
Your output should be as follows:
Contents of Compact Disc
========================
Ode to Joy by Bach
The Sleeping Beauty by Tchaikovsky
Lullaby by Brahms
Canon by Bach
Symphony No.5 by Beethoven
The Blue Danube Waltz by Strauss
1 . Declare an array of Strings, called cd with a

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