Question: Create a Java Applet (graphics appthat runs inside a web browser) that uses at least one loop to display 10 faces which alternate between orange
Create a Java Applet (graphics appthat runs inside a web browser) that uses at least one loop to display 10 faces which alternate between orange and blue (OCC school colors), drawn from the top-left corner to the bottom-right corner of the applet's canvas. Define constants for every graphics value that does not change (e.g. diameters of faces, width and height of the eyes, etc). If the counter value in the loop (for or while loop) is even, display an orange face, otherwise display a blue face. Please see screen shot of the expected output below. Please be as accurate as possible with the faces in terms of the proportion.

Applet Viewer: LoopyFaces.class Applet started
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
