Write an algorithm that takes the input 2 multi-dımensional array and produce and calculate the sum of consecutive adjacent rows of both arrays More over your algorithm is able to identify that how many negative and positive number does your array contain save the result in P and N 1 dimensional array. Array -1 3 2 3 1 3 2 Array - 2 -3 4 2 -7 -6 9 7 -22 Output Must be like this: Output Must Be Like This 3+2+3+2-3+4 = 11 s P=3 23135258 9704 N= -3 -6 – 7

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
Write an algorithm that takes the input 2 multi-dimensional array and produce and
calculate the sum of consecutive adjacent rows of both arrays More over your
algorithm is able to identify that how many negative and positive number does your
array contain save the result in P and N 1 dimensional array.
Array - 1
3
2
3
1
3
2
Array -2
-3
4
-7
-6
9
7
-22
Output Must be like this:
Output Must Be Like This 3+2+3+2-3+4 = 11 .
P=3 231352 589704
N= -3 -6 – 7
Transcribed Image Text:Write an algorithm that takes the input 2 multi-dimensional array and produce and calculate the sum of consecutive adjacent rows of both arrays More over your algorithm is able to identify that how many negative and positive number does your array contain save the result in P and N 1 dimensional array. Array - 1 3 2 3 1 3 2 Array -2 -3 4 -7 -6 9 7 -22 Output Must be like this: Output Must Be Like This 3+2+3+2-3+4 = 11 . P=3 231352 589704 N= -3 -6 – 7
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Randomised algorithm
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
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