Question: QUESTION 1 Write a java code to: [10 Marks] Declare and instantiate an array called scores of type integer. The size of the array should

QUESTION 1 Write a java code to: [10 Marks] Declare and instantiate an array called scores of type integer. The size of the array should be 10. Then, initialize each element in the array by asking the user to enter the value of that element. After that, print the values of the array in the screen. Use loops for initializing the array and printing its values. Include the code of the above description in a try block. Then, catch any possible exception. In case an exception occurred, display an appropriate message in the screen indicating the cause of the exception.

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!