-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHumanArt.java
More file actions
85 lines (73 loc) · 2.23 KB
/
HumanArt.java
File metadata and controls
85 lines (73 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/**
* Class to draw a human figure using
* ASCII characters and multiple methods.
* This human character is the unique
* creation of the author
*
* @author David Hines
*/
public class HumanArt {
/**
*Draws the Human Art ASCII design using
*multiple methods
*@param args command lines arguments (not used)
*/
public static void main(String[] args) {
drawHead();
drawTorso();
drawLegs();
}
/**
*Draws the head of the Human Art using
*multiple method calls
*/
public static void drawHead() {
drawHat();
drawFace();
}
/**
*Draws the hat of the head component and
*allows for easy change to hat design
*/
public static void drawHat() {
System.out.println(" ___");
System.out.println(" __||_||__");
}
/**
*Draws the face of the head component and
*enables change to just the face design
*/
public static void drawFace() {
System.out.println(" *****");
System.out.println(" * - - *");
System.out.println(" @* \" *@");
System.out.println(" * O *");
System.out.println(" *****");
}
/**
*Draws the torso component of the Human Art
*including the arms and hands
*/
public static void drawTorso() {
System.out.println(" | |");
System.out.println(" /---------\\");
System.out.println(" // ||||||| \\\\");
System.out.println(" // | | \\\\");
System.out.println(" || | | ||");
System.out.println(" oo | | oo");
System.out.println(" 000o ####### o000");
System.out.println(" 000 / \\ 000");
}
/**
*Draws the legs of the Human Art using
*including the feet
*/
public static void drawLegs() {
System.out.println(" | _ |");
System.out.println(" | / \\ |");
System.out.println(" | | | |");
System.out.println(" | | | |");
System.out.println(" | | | |");
System.out.println(" {#####/ \\#####}");
}
}