Write a complete Java program for the following problem. Your instructor needs a program that willcalculate student semester averages, final letter grades as well as the class average and the...

Write a complete Java program for the following problem. Your instructor needs a program that willcalculate student semester averages, final letter grades as well as the class average and the distribution ofletter grades. A data file, StudentGrades.txt, has been prepared containing the student’s name,and three test scores, test1, test2 and finalTest.The program will do the following:1. The main method will read a student’s record from the file and call a method,computeAverage which will compute and return the student’s average using the followingformula:semesterAverage = 0.20 * test1 + 0.30 * test2 + 0.50 * finalTest2. The main method will then invoke a method, letterGrade, which will return the student’sletter grade according to the following scheme:Semester Average Final Letter Grade>= 90 A>= 80 B>= 70 C>= 60 D
3. The main method will then invoke a method, printRecord, which will print a student’srecord.4. The main method will repeat steps 1 -3 until there are no more students to be processed.5. The main method will then calculate the class average, and tabulate the grade distribution and thehighest and lowest semester grades.6. It will then call methods printGradeDistribution and printStatistics to print the gradedistribution and the lowest, highest and average grade respectively.7. Print “ALL DONE! When your program is completed.Your program must determine when there are no more students to process. Explain your method in acomment. Write all output to a file called Roster.txt. Your output should contain headings and beneatly formatted. With lines skipped as appropriate. See the sample output below.
Hw3b_java.docx (7-24-20)Use the following data (Do not make up any data of your own.):
Meredith 85 90 85Bailey 70 90 70Izzie 45 50 65George 75 80 72Cristina 72 78 78Gibbs 92 98 95Denozzo 70 70 70Ziva 90 88 95McGee 88 88 88Abby 50 65 65
Be sure to use meaningful variables, avoid the use of class variables and format your program using thestyle we have adopted in class.Your output should look as follows:
Student Name Test1 Test2 Final Average GradeMeredith 85 90 85 87 BBailey 70 90 70 76 C...The number of A grades is: ?The number of B grades is: ?The number of C grades is: ?The number of D grades is: ?The number of F grades is: ?Class Average: ??.?Lowest Average: ??.?Highest Grade: ??.?ALL DONE!
Programming note:Since you will be having several methods all of which need to print to the same PrintStream, you willneed to create a class PrintStream object, as follows:public class ProjectName {static PrintStream ps;public static void main(String[] args) throws Exception {ps = new PrintStream("Roster.txt");
Aug 02, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here