2551.p5.Spring2011

2551.p5.Spring2011 - 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 #5 Due: Friday, 22 April, noon Please note: There is no ‘late turnin.’ Note : This is an easy program; worth 80 points. You will only need a Main class with one additional static method (see below). Its main purpose is to acquaint you with 2d arrays, and that’s it. Using NetBeans 6.9.1 or later version you are to write a Java program using OOP principles to accommodate the following functionality Using the input file Countries.txt (which contains a number of European countries, their capitals, and the population of these capitals in addition to region number), you are to build a 4 x 12 two- dimensional array of integers (one row per region) from these capital populations, average the numbers in each row and display the array as well as each row’s average. Each record in the input file has two fields of interest to you necessary to build your two-dimensional array: the region number and the population. (You will need a substring to extract those two numbers, as you have done in previous programs.) Task 1:
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 / 2

2551.p5.Spring2011 - 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