Write a Java program to input a single dimensional integer array of size 10. Pass the array to a method named changeNumbers that returns an array. In this method, if a number is odd then divide it by...

Write a Java program to input a single dimensional integer array of size 10. Pass the array to a method named changeNumbers that returns an array. In this method, if a number is odd then divide it by 3 and if it is even then multiply it 2 and place them in another array. Display the two arrays and their total by invoking a method named displayArray.

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here