maine (> +C Tests Executions 1. Don't Get Me Cornered by Jay Vince Serato G Run Tests I'm currently harnding a 2-Dimensional Array, but m scared of being in the corners What if I fall off the edge? I don't wanna go near them Test Cases Given a 2-Dimensional Array, sum up all the numbers that are not in the coners of the 2-0 array. O Test Case1 Example in the following 2-D Array: Your Output 5716 No Output 2618 1547 5891 Expected Output 4451 I will not include those in the frst and last row and those in the first and last column. I shall then only add 6+1+5+4+8+9 since al the other numbers are in the Enter runber of rows: S Enter nunber of coluns: 4 Elements: comer. To visualize 5716 2618 2618 1547 1547 S891 6894 4451 4454 Sun- 33 Input 1. Number of Rows O Test Case 2 2. Number of Columns 3. Elements of the 2-D Array O Test Case 3 Output O Test Case 4 Enter nuber of rows:S Enter nuber of colums: 4 Elements: O Test Case 5n 5716 26 18 1547 O Test Case 6 Hsten S891 4451 Sun-33 O Test Case 7 den

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Don't Get Me Cornered

Code in C language

> + c
main.c
Tests
Executions
1. Don't Get Me Cornered
by Jay Vince Serato
E Run Tests
I'm currently handling a 2-Dimensional Array, but I'm scared
What if I fall off the edge? I--I don't wanna go near them.
being in the corners.
Test Cases
Given a 2-Dimensional Array, sum up all the numbers that are not in the corners of
the 2-D array.
O Test Case 1
Example in the following 2-D Array:
Your Output
5716
No Output
2618
1547
5891
Expected Output
4451
Enter number of rows: 5
I will not include those in the first and last row and those in the first and last
column. I shall then only add 6+1+5+4+8+9 since all the other numbers are in the
Enter number of columns: 4
Elements:
cormer. To visualize:
5716
5716
2618
2618
1547
1547
589 1
5894
4451
4 45 1
Sum = 33
Input
1. Number of Rows
O Test Case 2
2. Number of Columns
3. Elements of the 2-D Array
O Test Case 3
Output
O Test Case 4
Enter number of rows: 5
Enter number of columns: 4
Elements:
O Test Case 5 Hidden
5-716
2-618
1547
O Test Case 6 Hidden
5.891
4.451
Sum = 33
O Test Case 7 Hidden
Transcribed Image Text:> + c main.c Tests Executions 1. Don't Get Me Cornered by Jay Vince Serato E Run Tests I'm currently handling a 2-Dimensional Array, but I'm scared What if I fall off the edge? I--I don't wanna go near them. being in the corners. Test Cases Given a 2-Dimensional Array, sum up all the numbers that are not in the corners of the 2-D array. O Test Case 1 Example in the following 2-D Array: Your Output 5716 No Output 2618 1547 5891 Expected Output 4451 Enter number of rows: 5 I will not include those in the first and last row and those in the first and last column. I shall then only add 6+1+5+4+8+9 since all the other numbers are in the Enter number of columns: 4 Elements: cormer. To visualize: 5716 5716 2618 2618 1547 1547 589 1 5894 4451 4 45 1 Sum = 33 Input 1. Number of Rows O Test Case 2 2. Number of Columns 3. Elements of the 2-D Array O Test Case 3 Output O Test Case 4 Enter number of rows: 5 Enter number of columns: 4 Elements: O Test Case 5 Hidden 5-716 2-618 1547 O Test Case 6 Hidden 5.891 4.451 Sum = 33 O Test Case 7 Hidden
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY