Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help finishing the program that uses the class for this problem. I already

ID: 660697 • Letter: N

Question

Need help finishing the program that uses the class for this problem. I already have the class most of the class done and have attached a UML for it. it needs to use the information stored on the .txt file.

The problem consists of GradeBook.java, GradeBookDemo.java, and StudentInfo.txt

_______________________________

Problem

LA teacher has five students who have taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores.

Write a class that uses a String array (or an ArrayList object) to hold the five students

Test Score Letter Grade 90-100 A 80-89 B 70-79 C 60-69 D 0-59 F

Explanation / Answer

import java.util.Scanner;
import java.io.*;
public class GradeBook{
   public static void main(String [] args) throws IOException
       {
       File inputFile = new File("grades.txt");
       Scanner infile = new Scanner(inputFile);
       Student[] students = new Student[5];
       getStudentData();
       }
       public static double getStudentData(Student[] array)
       {
           Scanner scan = new Scanner(System.in);
           String[] student = new String[5];
           double[] test = new double[4];
           for(int i = 0; i < student.length;i++)
           {
               System.out.println("Enter the name of the student : ");
               student[i] = scan.nextLine();
               for(int j = 0;j < test.length;j++)
               {
               System.out.println("Enter score " + (j+1) + " for the student");
               test[j] = scan.nextDouble();
               }
               array[i] = new Student(student[i], test);
               }
           }
   }


-------------

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote