Write a GradesStatisticsclass that implements the following requirements: ?Ask u
ID: 3634883 • 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 thesecond 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
Hope this helps, please rate! import java.util.ArrayList; import java.util.Scanner; public class GradesStatistics { /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("How many students are in the class"); int students = sc.nextInt(); while(students>30 || studentsRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.