Description
In this program, you are given two text files which are the midterm and final grades of students. You are asked to:
• (10 points)Read grades from two different files into two double ArrayLists
• (20 points)Find weighted average grades of students and store the results in an double ArrayList. o Remember the usage of parseDouble() method.
weightedAverage = midtermGrade * midtermWeight + finalGrade * finalWeight
• (20 points)Sort double ArrayList in descending order and display its contents.
o Try using methods in the Collections class. o Sorting in ascending order but printing the content in descending order is also valid.
Sample Run:
Reviews
There are no reviews yet.