Question: A code that will determine the average of the class and display it. I have this so far to go with my class. import java.io.*;

A code that will determine the average of the class and display it. I have this so far to go with my class.

import java.io.*; public class TestAverages{ public static void main ( String[] args ) throws IOException { double average; int studentNumber = 1; int getAverage; TestScoreReader scoreReader = new TestScoreReader( "Grades.csv" ); while( scoreReader.readNextLine()){ average = scoreReader.getAverage(); System.out.println( " Average for student " + studentNumber + " is " + average ); studentNumber++; average= getAverage; average = ( studentNumber++ / 5 );

System.out.printf( "The average of the class is: "); } scoreReader.close(); System.out.println( " No more scores. " );

} }

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!