lem #5. Design a method-oriented program with 2 by 5 two-dimensional array that asks the user to input 10 numbers. Get the sum of even numbers, odd numbers, positive numbers, and negative numbers. Class Name: ArrayMethodSumPostitiveNegativeNumbers Sample Input/Output: Enter the 10 values of the array 1 2
Machine Problem #5. Design a method-oriented
user to input 10 numbers. Get the sum of even numbers, odd numbers, positive numbers, and negative numbers.
Class Name: ArrayMethodSumPostitiveNegativeNumbers
Sample Input/Output:
Enter the 10 values of the array
1
2
3
4
5
-1
-2
-3
-4
-5
The sum of even numbers is: 0
The sum of odd numbers is:0
The sum of positive numbers is:15
The sum of negative numbers is:-15
Machine Problem #6. Design a method-oriented Java program with one-dimensional array that asks the user to
input 15 numbers. Get the highest and smallest value
Class Name: ArrayListBiggestSmallest
Sample Input/Output:
Enter the values of the 1-D array:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
The highest value is: 15
The smallest value is: 1
JAVA LANGUAGE
Step by step
Solved in 6 steps with 2 images