static void Main(string[] args) { // TODO: Declare and initialize a CD and a DVD object. List <string> playList = new List <string>(); playList.Add("Curtains Up(skit)"); playList.Add("White America"); playList.Add("Business"); playList.Add("Cleanin' Out My Closet"); playList.Add("Square Dance"); playList.Add("The Kiss (skit)"); playList.Add("Soldier"); playList.Add("Say Goodbye Hollywood"); playList.Add("Drips (featuring Obie Trice)"); playList.Add("Without Me"); playList.Add("Paul Rosenberg (skit)"); playList.Add("Sing for the Moment"); playList.Add("Superman (featuring Dina Rae)"); playList.Add("Hailie's Song"); playList.Add("Steve Berman(skit)"); playList.Add("When the Music Stops(featuring D12)"); playList.Add("Say What You Say(featuring Dr.Dre)"); playList.Add("'Till I Collapse (featuring Nate Dogg)"); playList.Add("My Dad's Gone Crazy (featuring Hailie Jade)"); playList.Add("Curtains Close (skit)"); CD cd1 = new CD("Compact Disc", "The Eminem Show", playList.Count, 300, playList); List <string> chapterList = new List <string>(); chapterList.Add("Ch1"); chapterList.Add("Ch2"); chapterList.Add("Ch3"); chapterList.Add("Ch4"); chapterList.Add("Ch5"); chapterList.Add("Ch6"); DVD dvd1 = new DVD("Digital Video Disc", "300", chapterList.Count, 500, chapterList); cd1.DisplayMenu(); cd1.DisplayContents(playList); cd1.LoadData(); cd1.ReadData(); cd1.SpinDisc(cd1); dvd1.DisplayMenu(); dvd1.DisplayContents(chapterList); // TODO: Call each CD and DVD method to verify that they work as expected. }
static void Main(string[] args) { // TODO: Declare and initialize a CD and a DVD object. List <string> tracks = new List <string>(); tracks.Add("Track 1"); tracks.Add("Track 2"); tracks.Add("Track 3"); tracks.Add("Track 4"); tracks.Add("Track 5"); CD myCd = new CD(500, "Luke Combs", "country", tracks); myCd.SpinDisc(); myCd.LoadData(); myCd.ReadData(); myCd.StoreData(); myCd.WriteData(); myCd.DisplayMenu(); myCd.DisplayData(tracks); List <string> chapters = new List <string>(); chapters.Add("Chp 1"); chapters.Add("Chp 2"); chapters.Add("Chp 3"); chapters.Add("Chp 4"); DVD myDvd = new DVD(200, "Extraction", "Action", chapters); myDvd.SpinDisc(); myDvd.LoadData(); myDvd.ReadData(); myDvd.StoreData(); myDvd.WriteData(); myDvd.DisplayMenu(); myDvd.DisplayData(chapters); // TODO: Call each CD and DVD method to verify that they work as expected. }