Off Topic A place for you car junkies to boldly post off topic. Almost anything goes.

Java Programming

Thread Tools
 
Search this Thread
 
Old Dec 2, 2006 | 07:43 PM
  #1  
imtalkintou's Avatar
Thread Starter
|
Senior Member
Joined: Mar 2006
Posts: 141
From:
Default Java Programming

I was wondering if anyone out there knows enough about java programming to help me and what not with my program that i have to make that i really have no idea on. It's on array's which are kind of foreign to me. If anyone knows how to do this and can/will help, let me kno, and i will post the requirements for it.
Thanks
 
Old Dec 4, 2006 | 01:51 PM
  #2  
98eclpsrider's Avatar
Joined: Aug 2006
Posts: 392
From:
Default RE: Java Programming

i did a some array's last quarter at my school, they were easier to make then in PHP, if you're making something to read from an array, you have to define a array and then name each attribute then you have to make a java statement calling certain parts of that array.
 
Old Dec 4, 2006 | 10:29 PM
  #3  
imtalkintou's Avatar
Thread Starter
|
Senior Member
Joined: Mar 2006
Posts: 141
From:
Default RE: Java Programming

well that kinda of helps, but here is my assignment

Programming Assignment 4
Music CD Catalog
Initial design due Monday December 4, 2006
Code and final design due Friday December 8, 2006

Objectives: Manipulate arrays of objects, implement array insert operation, compare objects.

Reading: Study the textbook and lecture notes on sorting, especially insertion sort (you can skip "heap sort" in the text).

Problem: Suppose you want to catalog your collection of music CD's. You want to keep track of your CD's by title, artist, and copyright date. You will write a Java program that maintains a sorted collection of MusicCD objects.

The ordering of CD's in a collection will be alphabetical by artist. Among the CD's by the same artist, ordering will be chronological by copyright date. Among CD's by the same artist with the same copyright date, ordering will be alphabetical by title.

Write a menu-based client program that sorts and merges lists of music CD's. Your menu will have four options: "read file", "clear collection", "write output", and "quit". The user will repeatedly get to choose menu options until "quit" is chosen.

When the user chooses "read file", she will get to select an input file of music CD's. Each music CD will consist of three parts: artist, title, and copyright date. The artist and title will be enclosed in double quotes. Each line of the file will contain one CD entry. Here is a sample input file:
"Goo Goo Dolls" "A Boy Named Goo" 1995
"White Stripes" "Elephant" 2003
"Beatles" "Let It Be" 1970

Your program must maintain a collection of music CDs sorted as described above. Multiple menu choices of "read file" will result in a collection of CD's merged from several files.

When the user chooses the "clear collection" option, the collection will be cleared of all previously inserted MusicCD objects.

When the user selects the "write output" menu option, the MusicCD objects in the collection will be written to an output file chosen by the user. The output file format must be identical to the input file format. Notice that a toString() method will be useful here.


Design: Design a solution to the problem that uses at least two classes plus a client program to manipulate objects from the two classes. I recommend the two classes MusicCD and CDCollection. You are free to use your own alternative design. Write a design document that includes a class diagram for each of your classes and descriptions of each method and data member.

Turning in your work:
• Turn in your initial design document at the beginning of class on Monday December 4.
• Electronically submit your code by 9:00am Friday December 8. Turn in a printout of your code and your final design at the beginning of class on Friday December 9.

 
Old Dec 5, 2006 | 08:34 PM
  #4  
Sanguinius's Avatar
Super Moderator
Joined: Mar 2005
Posts: 4,874
From: Norfolk, VA
Default RE: Java Programming

Damn I had Java a WHILE ago... I can't remember that crap now lol. I HATE arrays though. I STILL don't understand them.
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
caverspencer
Mitsubishi Montero & Montero Sport
0
May 31, 2006 01:53 PM
XTREME
Mitsubishi Evolution
4
May 15, 2006 01:12 PM
mysterio2099
Off Topic
45
Apr 2, 2006 11:35 PM
Clarky_1999
Mitsubishi Lancer and Lancer Sportback
2
Oct 31, 2005 12:20 AM
ivebeenthere
Mitsubishi Galant
1
Jun 12, 2004 03:56 AM




All times are GMT -5. The time now is 03:29 PM.