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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 22PE
icon
Related questions
Question
100%

Machine Problem #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
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

Expert Solution
steps

Step by step

Solved in 6 steps with 2 images

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
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT