Question: write the code in Java, here is an sample run 2. ScoreReport: Write a program that randomly generates scores for three students on four different

2. ScoreReport: Write a program that randomly generates scores for three students on four different exams. The scores should be stored in a two-dimensional array. Once the scores are entered, the program should display the following data for each exam: a) A list of the scores for each student b) Each student's increase or decrease from the previous exam (this will not be displayed for the first exam) c) The average score for all students for each exam A sample run with three students is given to you on next page. Note: You may assume that scores are valid integer values. You should declare an integer value for number of students and exams, so that if you change the number of students and/or exams, you have to change the value at only one place. Part - (a) SCORES FOR EACH STUDENT STUDENT 1 Exam 1: 8 Exam 2: 100 Exam 3: 37 Exam 4: 53 STUDENT 2 Exam 1: 15 Exam 2: 1 Exam 3: 47 Exam 4: 53 STUDENT 3 Exam 1: 39 Exam 2: 13 Exam 3: 18 Exam 4: 25 (b) Part SCORE INC OR DEC STUDENT 1 Change from exam 1 to exam 2: 92 Change from exam 2 to exam 3: -63 Change from exam 3 to exam 4: 16 STUDENT 2 Change from exam 1 to exam 2: -14 Change from exam 2 to exam 3: 46 Change from exam 3 to exam 4: 6 STUDENT 3 Change from exam 1 to exam 2: -26 Change from exam 2 to exam 3: 5 Change from exam 3 to exam 4: 7 Part - (c) AVERAGE SCORE IN EACH EXAM Average score for Exam 1: 20 Average score for Exam 2: 38 Average score for Exam 3: 34 Average score for Exam 4: 43
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
