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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started