Write a java program that create an array of 5 elements using a method getArray(), an int
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a java program that create an array of 5 elements using a method getArray(), an int value is passed to geArray that indicated the size of array, once array is initialized it is returned to another method AvgArray which then finds the average of the elements in array and return this average and display it.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: