HW09 - ENGR131 Homework 9 Combining Classes Arrays Due at...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Due at 11:59 PM on Tuesday November 13, 2007. Submit your .java files as required by your TA. Grading: Problem 1 (25 pts). Problem 2 (25 pts). Problem 3 (15 pts). Problem 4 (25 pts). General (10 pts). Instructions: The goal of this assignment is to combine arrays and classes in two different ways. The first (Problems #1 and #2) uses arrays as instance variables in a class in a way that combines techniques you are already familiar with. The second approach (Problems #3 and #4) creates an array of class instances (see Section 7.13). Each approach serves a different purpose. Be sure to use appropriate public and private modifiers as discussed in lecture, including the use of public for any constructors that you write. 1. Write a BarGraph class that displays a bar graph of a group of quantities. It should contain instance variables for the names of each “item” being counted and the actual quantity of each type of item. It should contain the following three methods: (A) The constructor receives values for the names but
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/10/2008 for the course ENGR 131 taught by Professor Xiaowei during the Spring '07 term at Case Western.

Ask a homework question - tutors are online