Write a program that prompts the user to enter several integer numbers and store them in a one dimensional array. The size of the array should be read from the keyboard. The program should calculate...

answer in java language
Write a program that prompts the user to enter several integer numbers and store<br>them in a one dimensional array. The size of the array should be read from the<br>keyboard. The program should calculate and display the average of the numbers. If the<br>user enters a value for the array size less than one, throw and handle an appropriate<br>exception (you have to display the message array size cannot be less than one) and<br>prompt the user to enter another array size. This process continue until the user enters<br>the correct array size. In addition, the program should be able to handle exception<br>thrown when there is a division by zero problem, when the index of the array is out of<br>bound, when there is input mismatch.<br>

Extracted text: Write a program that prompts the user to enter several integer numbers and store them in a one dimensional array. The size of the array should be read from the keyboard. The program should calculate and display the average of the numbers. If the user enters a value for the array size less than one, throw and handle an appropriate exception (you have to display the message array size cannot be less than one) and prompt the user to enter another array size. This process continue until the user enters the correct array size. In addition, the program should be able to handle exception thrown when there is a division by zero problem, when the index of the array is out of bound, when there is input mismatch.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here