P5.Fall2005

P5.Fall2005 - Program #5 COP 2521_706 Fall 2005 Note: This...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Program #5 COP 2521_706 Fall 2005 Note: This program and all remaining programs will be run using the JGrasp facility included as a CD with your textbook. The details of the turning will be discussed ahead. Objectives: Gain experience using multiple classes Gaining experience with Java interface class (interface classes) To gain experience in implementing interfaces (implementing interfaces) To gain experience with StringTokenizer (inputting multiple items at one time) To gain experience reading input from an external file To gain experience with ArrayList for dynamic array length (a very nice feature of Java) To gain experience with single and two-dimensional arrays, and arrays of objects To gain more experience with the toString methods To gain experience writing a larger program and learning how to solve a larger problem. Background : Consider the programs in your text dealing with interface classes and implementation of interfaces. In particular, study the programs on Quizzes and Questions and Answers and Complexity. Consider also the UML class diagram on page 299. Also, you will need to review StringTokenizer class and its methods. I will present an approach to accessing your external file in JGrasp. Program 5 is an extension of these ideas plus some good work on arrays, ArrayList, and traditional arrays. Please study this assignment carefully so we can answer any questions you might have. This assignment is a hefty one and has a number of parts. The key, of course as always, just do a LITTLE bit at a time , verifying as you go…I will provide hints during class as it is almost an imperative to develop this programming assignment incrementally. We have studied about interfaces – a very important concept in OOD and OOP. There is an interface class in your text that you may use almost directly here in Program 5. We also have a class called Questions that implemented Complexity by providing a realization of the abstract methods in Complexity – and several other methods. We will need to study this approach too, as it directly relates to this programming assignment. Objects of the Question class – created by the MiniQuiz class, which contains our static
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/26/2011 for the course COP 2551 taught by Professor Roggio,r during the Summer '08 term at UNF.

Page1 / 4

P5.Fall2005 - Program #5 COP 2521_706 Fall 2005 Note: This...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online