2551.p4.Fall2009

2551.p4.Fall2009 - COP 2551 Introduction to OOP Program #4...

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: 18 Nov 2009 Using NetBeans 6.7.1, you are to write a Java program using OOP principles to accommodate the functionality articulated below. Assignment #1 Objectives : Provide student with experience building arrays of objects Provide student with opportunity in doing file input and 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: 1. Build array of State objects. . Using States.Fall2009.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. Data may be in different relative positions than your previous files. So check this out. You are not to alter the data, however, in any way except eliminating the lines prior to the first state data.) Each State object will have six properties defined individually as ints, Strings, or whathaveyou, as appropriate for each State object. Do not use StringTokenizer. Use the substring method in the String class to parse individual attributesyou’re your objects. . 2. Display the Array of State Objects on the Monitor and in an External File. From main() you are to write code to print the array of objects. Write these to your screen via toString or some display() method in your State class. Also, you are to write these objects to an external file called States.print.txt. See my slides on I/O on my web page for examples. On the displayed output (screen), you are to have a column
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 / 5

2551.p4.Fall2009 - COP 2551 Introduction to OOP Program #4...

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