Question
Write a program that reads students' quizzes scores from a file (quiz.txt), and computes the statistics and returns a report of student average by dropping
Write a program that reads students' quizzes scores from a file (quiz.txt), and computes the statistics and returns a report of student average by dropping the lowest quiz grade. Download the following files and use them for this assignment. (Do not change the content of the following files.) Assignment8.java & quiz.txt the quiz.txt is an input file (text file) that has the quiz scores for each student. Save both files in the same folder. You will be creating a class called QuizData. This class is defined in a file named "QuizData.java". The class QuizData will contain a 2 dimensional array, an integer to keep track of number of students enrolled in class, and an integer to keep track of number of the quizzes for each student.
This is the contents of quiz.txt
This is the contents of Assignment8.java
Part 2: Programming: (20 points) Write a program that reads students' quizzes scores from a file (quiz.txt), and computes the statistics and returns a report of student average by dropping the lowest quiz grade. Download the following files and use them for this assignment. (Do not change the content of the following files.) Assignment8.java & quiz.txt the quiz.txt is an input file (text file) that has the quiz scores for each student. Save both files in the same folder. You will be creating a class called QuizData. This class is defined in a file named "QuizData.java" The class QuizDatall contain a 2 dimensional array, an integer to keep track of number of students enrolled in class, and an integer to keep track of number of the quizzes for each student. Method Description of the Method It instantiates the 2- dimensional array by reading from the file. The first line in the input file (filename) contains the number of students (number of rows), and the second integer is the number of quizzes (number of columns) for each student. After instantiating, your 2-D array then you read the quizzes from the file to initialize the 2-D array ublic QuizData (String filename) returns the overall quiz average without dropping any quiz, It returns a report of student average quiz score after dropping the lowest quiz grade It returns a report of each quiz statistics, the lowest, highest, and the average for each ublic double quizAverage( ublic String studentStatistics() ublic String quizstatistics() uiz ublic String tostring) he toString method returns the 2-D array-see the sample output
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