/* * Tyler Rigsby * CSE 142, Section A * This program produces figures of an egg, a teacup, a stop sign, and a hat */ public class Figures { public static void main(String[] args) { drawEgg(); drawTeacup(); drawStopSign(); drawHat(); } // Draws an image of an egg public static void drawEgg() { drawEggTop(); drawEggBottom(); System.out.println(); } // Draws the top of an egg public static void drawEggTop() { System.out.println(" ______"); System.out.println(" /......\\"); System.out.println("/........\\"); } // Draws the bottom of an egg public static void drawEggBottom() { System.out.println("\\......../"); System.out.println(" \\______/"); } // Draws a teacup public static void drawTeacup() { drawEggBottom(); System.out.println("+--------+"); System.out.println(); } // Draws a stop sign public static void drawStopSign() { drawEggTop(); System.out.println("| STOP |"); drawEggBottom(); System.out.println(); } // Draws a hat public static void drawHat() { drawEggTop(); System.out.println("+--------+"); }