AP Computer Science – A project involving multiple classes

 

Classes you will write:

 

  1. A Song Class – maintains the following information about a song:
    1. Song title
    2. Number of minutes in song length
    3. Number of seconds in song length ( must be 0-59)
  2. A Disc Class – maintains the following information about a disc
    1. Title of disc
    2. Artist of disc
    3. Number of songs on disc
    4. An ArrayList of Song objects (songs on the disc)
  3. A DiscChanger Class – maintains the following information about a Disc Changer
    1. An ArrayList with 3 Disc objects
    2. An ArrayList to store a current playlist of Song objects created from the current Disc objects

 

 

Here are methods that must be present in each class:

 

Song Class

 

The Happy Song 4:09

 

Disc Class

 

  Title: Houses of the Holy

  Artist: Led Zeppelin

  Songs: 8

  1: The Song Remains the Same 6:26

  2: The Rain Song 7:14

  3: Over the Hills and Far Away 5:47

  4: The Crunge 4:13

  5: Dancing Days 5:22

  6: D'yer Mak'er 5:18

  7: No Quarter 6:52

  8: The Ocean 5:32

  Total Time: 46:44

 

DiscChanger Class

 

Disc 1

  Title: Houses of the Holy

  Artist: Led Zeppelin

  Songs: 8

  Total Time: 46:44

 

Disc 2

  Title: The Joshua Tree

  Artist: U2

  Songs: 11

  Total Time: 50:08

 

Disc 3

  Title: Greatest Hits

  Artist: Simon and Garfunkel

  Songs: 14

  Total Time: 44:11