CS 171 & 171L Introduction to Computer Science I & Lab Fall 2017 

Homework Assignment 3

Send me (dreimann@albion.edu) the following in a .java file as an attachment to an email message with Homework 3 as the subject line.

(20 points) Modify your program from Homework 2 so that the user can select several choices for facial features as follows. Adjust your original drawing if needed to demonstrate these additional features.

Define four different mouth styles: smile, flat, frown, round. Allow the user to cycle through these be pressing 'm' on the keyboard.

Define three different eye styles: narrow, normal, wide. Allow the user to cycle through these be pressing 'e' on the keyboard.

Define three different eyebrow styles: up, flat, down. Allow the user to cycle through these be pressing 'b' on the keyboard.

For each of these styles, use global variables to keep track of the current style.

Other information

You must use comments in your program. At the top, put your name and assignment number in a comment. Label each major section with a comment. Use whitespace (a blank line or two) to also separate section of your code to improve its readability.

Have fun!


Copyright © 2017, David A. Reimann. All rights reserved.