PDA

View Full Version : Java Lab Help


jamesflowers14
Dec 8, 2012, 10:02 PM
I am currently in a beginners Java Programming course and am having trouble with this homework problem. If someone has any input on the question please post your thoughts. Thanks.

Java Illuminated 3rd edition Chapter 11 #59

Design a class that calculates statistics on data in a file. We expect the file to contain grades represented by integer values, one per line. If you encounter a value that is not an integer, you should throw an exception, print a message to the console, skip that value, and continues processing. Store the grades that you read in an ArrayList so that all the grades are available for retrieval. You should also have, as a minimum, methods that return the grade average, the highest grade, the lowest grade, and ones that return all the grades as an array of letter grades. Test your class with a client class.