Problem Description
Emma is not very tidy with the desktop of her computer. She has the habit of opening windows on the screen and then not closing the application that created them. The result, of course, is a very cluttered desktop with some windows just peeking out from behind others and some completely hidden. Given that Emma doesn’t log off for days, this is a formidable mess. Your job is to determine which window (if any) gets selected when Emma clicks on a certain position of the screen.
Emma’s screen has a resolution of 10 6 by 10 6. When each window opens its position is given by the upper-left-hand corner, its width, and its height. (Assume position (0,0) is the
Emma’s screen has a resolution of 10 6 by 10 6. When each window opens its position is given by the upper-left-hand corner, its width, and its height. (Assume position (0,0) is the