Question: In Java, please. GOUCHER COLLEGE AP INSTITUTE 2015 NUMBER PLEASE Consider the following 10X 10 grid 2 4 5 8 1 8 14 5 3

In Java, please.

In Java, please. GOUCHER COLLEGE AP INSTITUTE 2015 NUMBER PLEASE Consider the

GOUCHER COLLEGE AP INSTITUTE 2015 NUMBER PLEASE Consider the following 10X 10 grid 2 4 5 8 1 8 14 5 3 5 7 10 3 2 5 0 7 0 4 4 5 10 8 5 6 78 4 7 73 2 7 14 0 0 5 4 6 4 1 3 68 7 10 8 16 7 37 8 25 2 4 8 3 8 24 0 7 10 4 4 3 8 8 1 3 7 3 4 The upper left hand comer is (1,1). The upper nght is (10,1) and the lower nghtis (10, 10. The input is four sets of two non-adjacent corners of a rectangle, in no particular order. The output is the sum of the numbers within the defined rectangle. SAMPLE INPUT 2 2 33 1 10 4 10 6 6 4 8 10 10 10 8 SAMPLE OUTPUT 20 21 47 10 TEST INPUT 1 10 3 8 6 67 5 6 5 76 13 3 1 TEST OUTPUT 62 18 18 40

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!