Write a function that takes a picture as input, and make the top half of the picture black.

What will be an ideal response?


```
def setHalfBlank(picture):
pixels = getPixels(picture)
for index in range(0,len(pixels)/2):
pixel = pixels[index]
setColor(pixel ,black)
```

Computer Science & Information Technology

You might also like to view...

What output is produced by the following code, assuming these lines of code are embedded in a correct program?

``` cout << "*" << setw(5) << 123 << "*" << 123 << "*" << endl; cout.setf(ios::showpos); cout << "*" << setw(5) << 123 << "*" << 123 << "*" << endl; cout.unsetf(ios::showpos): cout.setf(ios::left); cout << "*" << setw(5) << 123 << "*" << setw(5) << 123 << "*" << endl; ```

Computer Science & Information Technology

When you make changes that fine-tune the display of the site, it is a good idea to frequently preview the page in a browser to ensure that the layout displays exactly as you intended.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The "fathers of the Internet" are Vinton Cerf and ________

A) Robert Kahn B) Tim Berners-Lee C) Robert Cailliau D) Bill Gates

Computer Science & Information Technology

CTRL+B, CTRL+], and CTRL+U are all shortcut keys for formatting paragraphs.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology