Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

image text in transcribed

image text in transcribed

This is the contents of quiz.txt

image text in transcribed

This is the contents of Assignment8.java

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Explain the difference between a stock and a bond.

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago