2551.p4.Summer2007

2551.p4.Summer2007 - COP 2551 Introduction to OOP Program...

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

View Full Document Right Arrow Icon
COP 2551 – Introduction to OOP Program #4 Due: 31 July 2007 Using NetBeans 5.5, you are to write a Java program using OOP principles to accommodate the following functionality Assignment #1 Objectives : Provide student with experience building arrays of objects Provide student with opportunity in doing file input output. Provide student with exercises in learning UML Provide student with exercises in Javadoc and its various formats Provide student with exercises in searching and traversing the array of objects. Functionality: Using States.Spring2007.txt, you are to do the following: 1. Build array. Using States.Spring2007.txt, you are to build an array of objects. You are to develop a class named State and create 50 objects of type (class) State – one object for each record (line) from the input file. (You may cut off the first few lines of information. These are for you to see the relative position and length of each attribute. You are not to alter the data, however, in any way.) Each State object will have six properties defined individually as ints, Strings, or whathaveyou, as appropriate for each State object. Hint: you cannot use StringTokenizer. You will need subString to get to the individual attributes. 2. Display files Requirement . From main() you are to write code to print the array of objects. Write these to your screen via displaying; copy them also to a file called States.print.txt. On the displayed output (screen), you are to have a column header, followed by a blank line, followed by single spaced (one line per object) output. For the file output, only write the records. 3.
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.

Page1 / 4

2551.p4.Summer2007 - COP 2551 Introduction to OOP Program...

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