![]() ![]() |
| |||||||||
| This page removed for FERPA compliance | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Yes. Treat them all as separate sub-questions. Colin Potts |
| For number two, since five and two are integers, I think Python "rounds down" becaREMOVEDe the result mREMOVEDt also be an integer. For number six, I think that it will green. The initial color is white. Then, red is cleared (setRed(p,0)). Next, blue is cleared (setBlue(p,getRed(p)) becaREMOVEDe getRed(p) = 0. So, the color of the pixel is green since both red and blue are zero. Student5295 |
| If this comes up in the test, either 44 or 255 would be graded correct. Which one you get is the result of changing the JES preference setting I showed in class. In the later versions of JES, it gives 255 for any value you attempt to set above 255. For version 2 (as documented in the book) it wraps around and gives 256%value. Colin Potts |