Score Report Java program Task 1: Declare and initialize arrays. (1) Create an integer array to hold score of 6 students. Create another array with 6 elements to hold the name of the students. (2) Create a loop to input the name of the student and corresponding score, and store them in the two arrays you created above. Task 2: Find the student with the highest score. (3) Write code to find out the highest score. (4) Print out the name and score of the students with the highest score. (Hint: there might be multiple students who have the highest score. In that case you might want to use a new for loop to search the score array for the same highest score and print out the corresponding names using the right index obtained from the search.) Task 3: Find the students whose score are below 70. (5) Print out the name and score of the students whose scores are below 70. Task 4: Compute the average score. (6) Find out the average score of all students and print it out
Score Report Java program
Task 1: Declare and initialize arrays.
(1) Create an integer array to hold score of 6 students. Create another array with 6 elements to hold the name of the students.
(2) Create a loop to input the name of the student and corresponding score, and store them in the two arrays you created above.
Task 2: Find the student with the highest score.
(3) Write code to find out the highest score.
(4) Print out the name and score of the students with the highest score. (Hint: there might be multiple students who have the highest score. In that case you might want to use a new for loop to search the score array for the same highest score and print out the corresponding names using the right index obtained from the search.)
Task 3: Find the students whose score are below 70.
(5) Print out the name and score of the students whose scores are below 70.
Task 4: Compute the average score.
(6) Find out the average score of all students and print it out
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images