Mini Assignment: Police Sketch
Write
a police sketch program which outputs a customized face. The program prints out the face based on user choices for hair
type, eye style, mouth style, etc. You should have at least three different
parts to a head (e.g., hair, eyes, nose, mouth) and, for each part, at least
three choices.
A
example of a face is:
Choices of hair style:
1) parted
2) curly
3) balding
Enter choice: 2
Choices of eye style:
1) beady eyed
2) wears glasses
3) wide eyed
Enter choice: 3
Choices of mouth style:
1) smile
2) frown
3) surprised
Enter choice: 1
Your suspect looks like:
@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@
|
|
|
|
| (*)
(*) |
|
|
_|
|_
|_
_|
| |______|
|
|
|
Notes:
you should use methods!
you
need a loop to repeat the entire program and ifs to pick parts of the face.
the
program should allow the user to draw more than one sketch.
you need white space, comments and tabbing. Make sure that you have the
3 title comments and pre and post conditions on your methods.
Addendum:
Below are some additional faces, in case you run out of artistic steam:
|||||||||||||||| ||||||||||||||||
||||||||||||||||
___\\\|///__
|
|
|
| ||||||||||||||||
/ \
|
|
| -- --
| ||||||||||||||||
/
\
| o
o |
| | | -- |
| | |
| |
___ ___
|
|
|
| |o |/ \|o | | |
o o
| |--|
o |-| o |-|
_|
|_ |
|__| |__| | |
| |
--- ---
|
|_
_| |
| _|
|__
_| ^
|_
| |______|
|
| ///|\\\
| |_
_| |_
_|
|
|
\
/
|
| |
////\\\\ |
|
|
\ o /
|
|______| |
| /|______|\
|
\________/
|
| |||
|||
||| |||
\\\///