Modify to take the amount to reduce red by as a parameter.

What will be an ideal response?

```
public void decreaseRed ( int percent )
{
Pixel [ ] pixelArray = this getPixel s ( ) ;
int red = 0 ;
double factor = 1 . 0 ยก ( percent/1 0 ) ;
// loop through a l l the pixels
for ( Pixel currPi x e l : pixe lArray )
{
red = currPixel.getRed ( ) ;
currPixel . setRed ( ( int ) ( red * factor ) ) ;
}
}
```

Computer Science & Information Technology

You might also like to view...

Match the following terms to their meanings:

I. Section II. Merge III. Split IV. View Gridlines A. Used to display or hide the nonprinting grid B. To divide a cell into multiple cells C. Combines two or more cells into one cell D. A feature to organize your slides similar to using folders to organize your files

Computer Science & Information Technology

The ________ function is appropriate when there is only one option that does not fit the criteria

Fill in the blank(s) with correct word

Computer Science & Information Technology