Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Spring 2006 Midterm 1 Review: What Happen? Questions

Spring 2006 Midterm 1 Review: What Happen? Questions

do these two parts relate to each other? if not, then would the second part where it says "Suppose p is a pixel..." be (0,255,0) meaning the pixel is now green?

44 or 45? - the value loops around after 255... 300-255 = 45... which is it? Thanks...
When it loops round, 256 goes to 0 (remember that that is the first value, not 1), 257 goes to 1, 258 goes to 2, etc. So now you should be able to work out the pattern and whether 300 goes to 44 or 45. Colin Potts

2 - an integer returns an integer

2.5 - decimal returns a decimal (with the place intact)

a very long list of pixel data from the picture... store it in a variable 1st so it dosent print it into the cmd. window

it is false, so 0 (zero)

the RGB values are 255,255,255... wow... neato...

doesn't the pixel turn green at the end? (0,255,0)

After the third line. It will be (255,255,255) after the first and (0, 255, 0) at the end. It is cool, isn't it? Colin Potts



Link to this Page