3538p1.Fall2011

3538p1.Fall2011 - COP 3538 Data Structures with OOP Program...

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

View Full Document Right Arrow Icon
Program #1 Due: 14 September 2011 (Start of class) (Drop dead date/time: 19 Sept, start of class) Using NetBeans 7.0, 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, sorting, and comparisons of key searches and sort routines. Functionality: This looks like a long program, but much of the code will be discussed in class and is in the book ready for you to tailor to these requirements. 1. Download the States.Fall2011.txt file and include it in your project folder as you have done in the past. Delete ONLY the descriptor lines above the first data line. These lines are to assist you in determining the relative positions of the attributes within each record. Clearly, you need this file to build your array of objects. 2. Build an array of State 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 are to use Buffered Reader options and not Scanner). Each State object will have six properties defined individually as ints, Strings, or whathaveyou, as appropriate for each State object. You can see the attributes and the positions they occupy in each input line. 3. Display the array of objects. From main() you are to write code to print the array of objects. You are to have a column header, followed by a blank line, followed by single spaced (one line per object) output. All attributes are to be aligned under their column header: numeric data is always right justified with commas, String data is left justified. Work with samples of student output formatting available on my web page.
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

3538p1.Fall2011 - COP 3538 Data Structures with 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