Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a GradesStatistics class that implements the following requirements: Ask u

ID: 3634734 • Letter: W

Question

Write a GradesStatisticsclass that implements the following requirements: Ask user to enter two integer numbers, where the first one is used as the number of students in class and the

second one is used as the number of exams taken by each student in a semester. (input validation is required: the

first integer is greater than 0 and less than or equal to 30; the second integer is greater than 0.) Create a two dimension double array named examGrades. The number of rows in this array equals to the

number of students in class and the number of columns in this array equals to the number of exams. Create an ArrayList object, which will be used to hold student names. The capacity of this ArrayList

object needs to be set as 30. Write a two-layer for-loop to ask the user to enter the name of each student and his or her grade in each exam.

Add names to the ArrayList object and assign the grades to the examGrades array. Write a two-layer for-loop to calculate the average exam grade for each student and display

Student Name ...name of 1st student... ...name of 2nd student... ...... ...name of last student... ...average exam grade of last student..Average Exam Grade ...average exam grade of 1st student... ...average exam grade of 2nd student..Write a two-layer for-loop to calculate the total grade of all the exams taken by all the students and then the average grade of all the exams taken by all the students (hint: average grade = total grade / (number of students * number of exams taken by each student)), and find the minimum grade and the maximum grade among all the exams taken by all the students. Display

Exam Statistics in Fall 2011 Average Exam Grade: ... Minimum Exam Grade: ... Maximum Exam Grade: .

Explanation / Answer

Dear, import java.util.*; public class GradesStatistics { public static void main(String[] args) { Scanner input = new Scanner(System.in); //variables to hold input data int[][] examGrades; //variables to read the number of students and exams taken int students, exams; do{ System.out.println("Enter number of students in the class : "); //read the number of students in a class students = input.nextInt(); if(students30) System.out.println("Invalid input. Try again... "); }while(students30); do{ System.out.println("Enter the number of exams taken by each student in a semester : "); //read the number of exams taken by the students exams = input.nextInt(); if(exams
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote