Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

write the code in Java, here is an sample run image text in transcribed
image text in transcribed
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

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

Step: 3

blur-text-image

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago

Question

=+1 What are the major issues related to international T&D?

Answered: 1 week ago