// Helene Martin, CSE 142 // Well-structured program that draws 4 stacked shapes public class Figures { public static void main(String[] args) { makeHexagon(); makeBowl(); makeStopSign(); makeHat(); } // displays a hexagon public static void makeHexagon() { makeTop(); makeBottom(); System.out.println(); } // draws the top public static void makeTop() { System.out.println(" ______");// System.out.println(" / \\"); System.out.println("/ \\"); } // draws the bottom public static void makeBottom() { System.out.println("\\ /"); System.out.println(" \\______/"); } // draws a bowl public static void makeBowl() { makeBottom(); System.out.println("+--------+"); System.out.println(); } // draws a stop sign public static void makeStopSign() { makeTop(); System.out.println("| STOP |"); makeBottom(); System.out.println(); } // draws a hat public static void makeHat() { makeTop(); System.out.println("+--------+"); } }