hi please can some1 help me out with this project,this is the project
write a program to process a set of student marks. Each line of the input file follows this format: a name (which may be considered as a unique key for the purpose of this assignment) followed by a mark. An example is given below:
Once the input has been processed, the next step is to create the output. This should be listed in two ways and written to a single output file. The first list should be in alphabetic order, the second list should be in merit order. For each student in each list print the number of marks and the average. Each list should be preceded by a title.
After both lists have been printed, print the number of students, the average mark of all the students (this is not the same as the average of all the marks processed), and the standard deviation of the student averages (i.e. in the example below, this would be the s.d. of 10.0, 8.0, 4.0). Processing the above input data should produce the following output. All floating point numbers should be printed to one decimal place. When printing the merit order each line should begin with the rank in the merit order, as shown below.
Anna 3 8.0
Edward 1 10.0
Simon 2 4.0
1 Edward 1 10.0
2 Anna 3 8.0
3 Simon 2 4.0
Number of students: 3
Average student mark: 7.3
Standard deviation: 2.5
The filenames should be passed in as command-line arguments. If the output file already exists it should be overwritten. Your code should make appropriate use of Java Collection classes.
I was able tp write the first part but am stuck now cus i dont know how to rearrange the names to come out in an alphabetical order
please if any1 could help i ll be gratefull thanks