Lab 7 – Arrays

 

(Due before class on December 6, 2006)

 

The purpose of this lab is to design a solution and implement it using object-oriented design and programming with arrays. The application is a system for managing the music on an iPod similar to iTunes.

 

Design and write a Java application that reads in a list of songs from a text file – iPod.txt (pg. 246-249). Each song record contains a name of a song (e.g. White Bird), length of song (in minutes and seconds, e.g. 3:14), artist name (e.g., It’s a Beautiful Day), album name (e.g., It’s a Beautiful Day), and date that the song was last played (e.g. 4/15/2006). The different fields in the song record should be separated by a # in the data file.

 

Your program should allow the user to

1.     get a list of all songs on the iPod listing all of the information, or

2.     just the list of songs

3.     all of the songs for a particular artist

4.     followed by the number of songs listed and the total time of songs in days (e.g. 1.95 days)

 

You may use either System.in and System.out or a GUI.

 

NOTE: Follow the software development activities (software development life cycle) described in section 6.1. Use UML class diagrams to describe your classes.

 

Grades are determined using the following scale: