One of the four functions below generated this picture. Which one is it? A. B. C. D.

Question:

One of the four functions below generated this picture.

Which one is it?

A.

def newpic1(inpic): getwidth(inpic) getHeight(inpic) outpic = W = h makeEmptyPicture (w,h) outX = w-1 for inx in range (0,w/2): outY h-1 for inY in range (0,h/2): inpixel getPixelAt(inpic, inX,inY) getColor(inpixel) newpixel = getPixelAt (outpic,outX, outY) %3D color setColor(newpixel,color) outY outY - 1 outX = outX %3D show(outpic) return(outpic)

B.

C.

D.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: