Question: Write a Java program that fulfills the following requirements: 1 . Program asks the user for 5 integers and puts them into an array of

Write a Java program that fulfills the following requirements:
1. Program asks the user for 5 integers and puts them into an array of integers
2. Program loops through the array of integers and adds the numbers (HINT: A for loop would work well here)
3. Program displays the sum and the average

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 Programming Questions!