Write a java program that will perform the following: 1. Define an array of integer 2. Ask the user to how many number to input for the integer array 3. Compute and display the sum and average of the...



WRITE A JAVA PROGRAM
SEE ATTACHED PHOTO FOR THE INSTRUCTIONS


Write a java program that will perform the following:<br>1. Define an array of integer<br>2. Ask the user to how many number to input for the integer array<br>3. Compute and display the sum and average of the values in the array<br>For example:<br>Test<br>Input Result<br>int n = 5; 5<br>Sum is: 15<br>Average is: 3.00<br>3<br>int n = 7; 7<br>Sum is: 225<br>10<br>Average is: 32.14<br>20<br>45<br>30<br>40<br>20<br>60<br>1.<br>2.<br>

Extracted text: Write a java program that will perform the following: 1. Define an array of integer 2. Ask the user to how many number to input for the integer array 3. Compute and display the sum and average of the values in the array For example: Test Input Result int n = 5; 5 Sum is: 15 Average is: 3.00 3 int n = 7; 7 Sum is: 225 10 Average is: 32.14 20 45 30 40 20 60 1. 2.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here