Question: Write a Java program to create an array of test scores for 20 students. Use the Scanner class to assign 10 grades. It is a

Write a Java program to create an array of test scores for 20 students. Use the Scanner class to assign 10 grades. It is a one-dimensional array that can hold the test scores of 20 students for only one test.

1- Insert a new test score at the beginning of the array and display the results

2- Insert a new test score at the 5th position of the array and display the results

3- Insert a new test score at the end of the array and display the results

4- Use the same updated array of test scores to find the inverse of the array. For example, if you have an array of test scores:

87 65 94 82 90 100 70 68 98 81 73 88 97

Then the inverse should be:

97 88 73 81 98 68 70 100 90 82 94 65 87

The test scores should be between 0 and 100 (Data Validation). Add version control and proper comments to your program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!