Assignment 7: Streams Practice

Objective: To get experience using streams and parsing files in Java

Due: Before class on Monday. However, you should attempt to start the assignment before Friday.

Using Streams

Modify your Olympic Score generator so that the difficulty and execution scores come from the user.

Using Scanner

From the user (the console), find out what the difficult score is and the name of the file that contains the judges' execution scores. (Reminder: Look at the API for Scanner.) To simplify your life, in your program, you can assume a directory where the files are so that the user just has to enter the file name.

Parsing the Execution Scores from a File

Parse the execution scores from the file. Your program should handle if there are less than 6 scores in the file appropriately. (Are there any other special cases that you should handle?)

Reminder: Code Organization

Use methods as appropriate to organize your code.

Turnin

Copy your code and execution scores files into an assign7 directory in your turnin directory.

Grading (100 pts)

You will be evaluated based on the following criteria: