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

Midterm exam 1 review Fall2005: Tracing Complex Picture Method

Back to Midterm Exam 1 Review Fall2005

Questions? Answers? Comments?



I really don't feel like taking a test on SATURDAY Sep 24.
Student165

And you shouldn't have to! (GRIN...) Mark Guzdial


here's my answers, if you need this explained out i'll be online on aim tonight as "gtg320y"
i went through and showed the changing values of "value" next to them.
took a guess when dividing by 10 since i'm not wholly sure how int rounds numbers.

a)(255,255,255) —> (255,255,255), value = 0

b)(128,36,100) —> (128,64,100), value = 28

c)(200,250,5) —> (200,230,5) value = 195 –> value = 20

d)(5,25,200) —> (5,45,200) value = -195 –> value = 195 –> value = 20
Student165

(int) simply cuts off the decimal. No rounding. Mark Guzdial

alright so this just changed my answers by 1

c) green = 231, value = 19
d) green = 44, value = 19
Student165



Link to this Page