Question: Create a java program that: / / Asks users number of integers to store / / Sets up integer array to hold integers input /

Create a java program that:
// Asks users number of integers to store
// Sets up integer array to hold integers input
// Calls method to allow user to store their integers in array.
// Calls method to print current contents of array.
// Calls method to calculate the average of the even integers in array.
// Calls method that determines whether any values are repeated in the array.
So Your program contains 4 methods:
1. Method to fill array: Do not pass the scanner object from main() to the method, set up a new scanner object in the method.
2. Method to print array.
3. Method to determine the average of the even integers in the array: the method will do no printing; it will determine this value and pass it back to main() where the information will be printed.
4. Method to determine whether any value are repeated in the array: the method will do no printing; in some manner it will communicate back to main() whether there are repeated values or not.

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