Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm exam 1 review Sp2005: What do they do?

Comments? Questions? Answers? Questions on Answers? Comments on Answers?



Here's my solution at first glance:
11
11
methodA will negate the picture.
00
00
methodB will negate the right half of the picture
01
01
methodC will negate the top half of the picture
10
01
Student36

so their effects stay and layer on top of one another? i.e. methodA negates entire picture. methodB makes the right half of the picture negated again, making it normal?
Yes, if you did them in succession, but the problem is only about figuring them out separately. Mark Guzdial

wouldn't it negate the left half of the picture? can someone explain why (in the math) that it negates the right?
Remember that Y starts at 0 at the top, and X starts at 0 at the left. So if Y is at getHeight()/2, then that has to be halfway between top and bottom, and X at getWidth()/2 is in the middle between right and left. Mark Guzdial





Link to this Page