numbers, odd numbers, positive numbers, and negative numbers. Class Name: ArrayListSumPostitiveNegativeNumbers Sample Input/Output: Enter the 10 values of the ArrayList 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 #4. Design an ArrayList 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 3-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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
100%

Problem #3. Design an ArrayList that asks the user to input 10 numbers. Get the sum of even
numbers, odd numbers, positive numbers, and negative numbers.
Class Name: ArrayListSumPostitiveNegativeNumbers
Sample Input/Output:
Enter the 10 values of the ArrayList
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 #4. Design an ArrayList 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 3-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

 

use java language

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning