CIS 174                                                        LAB ASSIGNMENT  #5
Assigned date: Tuesday 2/26
Due date: Tuesday 3/4
30 points

Objectives

Lab 5.1 - [6 points]

Write a public method in the Picture class called getTotalGreen that returns the sum of all pixel green values of the picture.
Use a for each loop to solve the problem.
A copy of your source code and run time output.

Lab 5.2 - [6 points]

In the Picture class, write a public method called changedColors that modifies the red, green and blue values of a picture by different amount.
Try it out on different pictures to see if you get any nice results.
A copy of your source code and run time output.

Lab 5.3 - [6 points]

Rewrite problem 5.1 by using a while loop. Name the the method getTotalGreenW.
A copy of your source code and run time output.

Lab 5.4 - [6 points]

Rewrite problem 5.1 by using a for  loop. Name the the method getTotalGreenF.
A copy of your source code and run time output.

Lab 5.5 - [6 points]

Write a program that displays the following:

XXXXXXXXXX
XXXXXXXXX
XXXXXXXX
XXXXXXX
XXXXXX
XXXXX
XXXX
XXX
XX
X

A copy of your source code and run time output.

Note: You are allowed to write the system.out.print("X") statement once.