2. Dimensionary Investigation by Jay Vince Serato Iam Detective Jake Peralta. I am here to investigate a series of suspicious activities in the area. I have received a tip that someone is going to get mugged in my district. It seems that the victim is the most wealthy among the populace. Given an area represented by a 2-Dimensional Array, sum up the four numbers that are directly around the biggest number in the 2-D Array -- the one at the top, left, right, and bottom. Assume that there will be only one such number in the array. Dont worry if the said number has no number above or below iR, or at its left or right; that just makes my job easier. Example in the following 2-0 Array 5716 2618 1547 5891 4451 I see that 9 is the largest number in the aray, and therefore I will be adding up the number above it (4), the number at its left (8), the number at its right (1), and the number below it (s). Input 1. Number of Rows 2. Number of Columns 3. Elements of the 2-0 Array Output Enter nunber of rows: 5 Enter nunber of coluns: 4 Elements: 5716 2618 1547 5891 445
2. Dimensionary Investigation by Jay Vince Serato Iam Detective Jake Peralta. I am here to investigate a series of suspicious activities in the area. I have received a tip that someone is going to get mugged in my district. It seems that the victim is the most wealthy among the populace. Given an area represented by a 2-Dimensional Array, sum up the four numbers that are directly around the biggest number in the 2-D Array -- the one at the top, left, right, and bottom. Assume that there will be only one such number in the array. Dont worry if the said number has no number above or below iR, or at its left or right; that just makes my job easier. Example in the following 2-0 Array 5716 2618 1547 5891 4451 I see that 9 is the largest number in the aray, and therefore I will be adding up the number above it (4), the number at its left (8), the number at its right (1), and the number below it (s). Input 1. Number of Rows 2. Number of Columns 3. Elements of the 2-0 Array Output Enter nunber of rows: 5 Enter nunber of coluns: 4 Elements: 5716 2618 1547 5891 445
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
Related questions
Question
Dimensionary Investigation
Code in C language
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
Knowledge Booster
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.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage