Question: Please code in java, and you can assign any names to the students here is the code written in class Using the program you wrote

Please code in java, and you can assign any names to the students  Please code in java, and you can assign any names to
here is the code written in class
the students here is the code written in class Using the program

Using the program you wrote in class make the following modifications 1. Add the students name to the data file and the report 2. Add a final row to the report. This row will have the average for each test for the class as well as the overall class average. 2 3 4 5 6 7 8 9 10 GradeReport.java . import java.util.Scanner; import java.io.*; public class GradeReport{ public static void main(String[] args) throws IOException { File fn = new File("Studentinfo.txt"); Scanner input File = new Scanner(fn); int count = 0; int sid; int gri; int gr2; int gr3; int sum; double average; char grade; 11 12 13 14 16 String fmth = "75 %75 %75 75 75 75 "; String fmt = "%70 %d %70 870 87.2f $7s " : System.out.printf(fmth, "Student","gr1","gr2","gr3","avg", "grade"); System.out.printf(fmth," -- " ): while (count 89) grade = 'A'; else if (average > 79) grade = 'B'; else if (average > 69) grade = 'C': else if (average > 59) grade = 'D': else grade = 'F'; System.out.printf(fmt, sid, gri, gr2,gr3, average, gri, gr2,gr3); count++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!