Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

How can an outsider assess an organizations culture?

Answered: 1 week ago

Question

u = 5 j , v = 6 i Find the angle between the vectors.

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago