Array erogam Write a Java program that handles an array of integer numbers of the size 6. Then, initialize the array to
Posted: Fri May 20, 2022 3:10 pm
Array erogam Write a Java program that handles an array of integer numbers of the size 6. Then, initialize the array to include even and odd numbers. You need to calculate the number of odd values, their averages and their sum and print them out. Also, create an array called odd and stores the odd numbers only from the original array, and another array called odd_sorted that sort the odd array in an ascending order. Do the same for even values. Notes: You need create your program in a text editor and save it as ArrayProgram Java. Then, attach it when you submit it. Assume that the array contains the values (5.1.6.3.2.10) Your program should print the following The original array is 5. 1.6. 3. 2 10 - Odd Array - The odd values are 5.1, 3 The odd array sorted is 1, 3.5 The number of odd values 3 The sum - 9 The average - 3 --Even Array -