Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions