Hi I need help with the following exercises. Exercise 1: Write a Java application in which the user is prompted for the total number of integer values to be stored in an array. Initialize the array with random values in the range 1-20 inclusively. Now determine the largest and the smallest values in the array, and also their position in the array. Display the sum and average of all the values as well.
Exercise 2: Write a Java application in which you initialize an array with 10 String values. Randomly select a value from the array. Now allow the user three chances to gues the value. The user must have the option to play again.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.