Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

jAVA CLASS Write a program that calculates the average of N integers. The program should promptthe user to enter the value for N and then afterward...

jAVA CLASS

Write a program that calculates the average of N integers. The program should promptthe user to enter the value for N and then afterward must enter all N numbers. Use anarray to save the N integers. If the user enters a nonpositive value for N, then anexception should be thrown (and caught) with the message “N must be positive.” If thereis any exception as the user is entering the N numbers, an error message should bedisplayed, and the user prompted to enter the number again.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question