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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started