Wednesday, October 25, 2023
⁃
Difficulty:
Intermediate

Create a Java program that prompts the user to input the scores of 10 students, divided into 2 groups of 5 students each. You should store these scores in a two-dimensional array and display the arithmetic mean (average) for each group of students.

4 5 3 6 3 7 4 8 3 5 6 2 6 7 4 6 7 4 2 3

The average for group 1 is 4.8 The average for group 2 is 4.7

Share it on your social media and challenge your friends to solve programming problems. Together, we can learn and grow.

The code has been successfully copied to the clipboard.

Continue improving your Java programming skills with our selection of practical exercises from the lesson. Click on Practice and challenge your knowledge!

Practice with exercises in Java that use arrays of different dimensions to store the information.