Prepare a program which evaluates a weighted average
Program: Write a program which reads student names, social security numbers, and test scores from an input file named infile.
The program then computes a weighted average, finds the appropriate letter grade, and displays the formatted output specified below to the screen.
The information reading should be controlled by a while Loop. Termination should occur after the input file is empty. If a student has a grade of "A" (0.90 or more) and each score is at least 0.85, then a mark of distinction should be entered in the output.
The range will be computed by the difference of the highest and lowest grade for a student.
Prepare this program in java. It must compile with no errors and follow the directions.