Here's the input picture:
And here's what it looked like afterward:

Which of the below functions did this?
(a)
def mangle(picture):
for x in range(1,getWidth(picture)/2):
for y in range(1,getHeight(picture)/2):
setColor(getPixel(picture,x,y),black)
for x in range(getWidth(picture)/2,getWidth(picture)):
for y in range(getHeight(picture)/2,getHeight(picture)):
setColor(getPixel(picture,x,y), white)
(b)
def mangle(picture):
for x in range(1,getWidth(picture)):
for y in range(1,getHeight(picture)):
setColor(getPixel(picture,x,y),white)
for x in range(getWidth(picture)/2,getWidth(picture)):
for y in range(getHeight(picture)/2,getHeight(picture)):
setColor(getPixel(picture,x,y),black)
(c)
def mangle(picture):
for x in range(1,getWidth(picture)/2):
for y in range(1,getHeight(picture)/2):
setColor(getPixel(picture,x,y),white)
for x in range(getWidth(picture)/2,getWidth(picture)):
for y in range(getHeight(picture)/2,getHeight(picture)):
setColor(getPixel(picture,x,y),black)
(d)
def mangle(picture):
for x in range(1,getWidth(picture)/2):
for y in range(1,getHeight(picture)/2):
setColor(getPixel(picture,x,y),white)
for x in range(1,getWidth(picture)):
for y in range(1,getHeight(picture)):
setColor(getPixel(picture,x,y),black)
For each of the below programs, write a one sentence description of what it
does, where each sentence must be 10 words or less.
(a)
def alley(aPicture):
for num in range(1,100):
setColor(getPixel(aPicture,num,num),red)
(b)
def jespart(aPicture):
for x in range(1,getWidth(aPicture)/2):
for y in range(1,getHeight(aPicture)/2):
pixel = getPixel(aPicture,x,y)
setRed(pixel,0)