Program 34 obviously reduces the red by too much. Write a version that only reduces the red by 10%, then one by 20%. Can you find pictures where each is most useful? Note that you can always repeatedly reduce the red in a picture but you don’t want to have to do it too many times.

1. 10% version:
2. 20% version:


1. ```
def decreaseRed(picture):
for pix in getPixels(picture):
value=getRed(pix)
setRed(pix,value*0.1)
```
2. ```
def decreaseRed(picture):
for pix in getPixels(picture):
value=getRed(pix)
setRed(pix,value*0.2)
```

Computer Science & Information Technology

You might also like to view...

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

1. The discipline of computer science is solely concerned with the design and development of computational machines. 2. Unlike in the natural sciences (such as physics and biology), the systems that computer scientists investigate are largely artificial (e.g., programs, computers, computation models). 3. The three recurring themes that define the discipline of computer science are hardware, software, and theory. 4. Theoretical computer scientists have proven that any problem that can be stated clearly is solvable via an algorithm. 5. Theoretical computer scientists have proven that any problem that can be stated clearly is solvable via an algorithm.

Computer Science & Information Technology

The ____ files are the source files used by Director when you are creating movies.

A. .fla B. .dir C. .dcr D. .swf

Computer Science & Information Technology

What are icon sets?

What will be an ideal response?

Computer Science & Information Technology

Case Based Critical Thinking QuestionsCase 6-2Janise's College Pet Sitting business is growing rapidly.  She has expanded to include more pet sitters and is creating forms for the sitters to enter information in the business database. She is creating only custom forms. Determine the best methods, features, and tools for Janise to use when creating her custom forms. Before typing the title, which tool should Janise choose from the Design tab on the Ribbon?

A. Header/Footer B. Title C. Logo D. View Code

Computer Science & Information Technology