Question: Which of the programs below takes a picture and removes all the blue from every pixel that already has a blue value of more than

Which of the programs below takes a picture and removes all the blue from
every pixel that already has a blue value of more than 100?
1. A only
2. D only
3. B and C
4. C and D
5. None
6. All

What do the other ones do?

A.

def blueOneHundred (picture): for x in range (0,100): for y in range (0,100): pixel setBlue (pixel,100) getPixel (picture,x,y)

B.

def blueOneHundred (picture): for x in range (0,100): for y in range

C.

(0,100): pixel setBlue (pixel,100) getPixel (picture,x,y)

D.

def blueOneHundred (picture): for x in range (0,100): for y in range (0,100): pixel setBlue (pixel,100) getPixel (picture,x,y)

Step by Step Solution

3.42 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The answer is number two D only A Sets the blue value of the top ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Computing and Programming in Pytho Questions!