6d

Advanced Placement

Computer Science Lab

 

 

File Input and Output with Array Lists

 

 

 

 

 

Programming Assignment

 

Rewrite program 4d, the student data program that used file input and output to use ArrayLists to handle the data. using the following student test information.  Copy this text in notepad and then paste the file into the same directory as your class files.

 

Jones,Tom,2847,89,78,91,75,82

Smith,Mary,1143,67,78,88,77,88

Miller,Anne,4848,78,78,72,67,83

Brown,Robert,5630,74,83,88,80,86

Martinez,Ceasar,7892,74,78,81,75,72

Lopez,Maria,3461,87,77,91,75,92

 

As with the previous  program write the program to edit the student information and rewrite the file to disk, to add a student or delete a student.  Write the program to include the test average, student average, and standard deviation.  For interaction with the user use the JOptionPane dialog boxes.

In addition include a method to sort the students in the file alphabetically.

 

Turn in a program listing your source code.  Source code should use proper formatting.  Also turn in a copy of your output as in previous assignments.  This can be obtained by running the program and then using AltPrintScreen to copy the window of the output onto the clipboard. Then paste the contents of the clipboard into WordPad and print out the document.  In addition to the source code, the output, also turn in the answer to the questions listed below.