// Zorah Fung // CSE 142, January 6, 2017 // This program prints out two diamonds and an X using ASCII characters // // Note: First, we capture the structure of our output by creating two methods // -- one for each main shape, a diamond (appearing twice) and an X. Main is a // concise summary. Redundancy has not yet been eliminated. public class FiguresVersion2 { public static void main(String[] args) { drawDiamond(); drawDiamond(); drawX(); } // Prints out a diamond public static void drawDiamond() { System.out.println(" /\\"); System.out.println(" / \\"); System.out.println("/ \\"); System.out.println("\\ /"); System.out.println(" \\ /"); System.out.println(" \\/"); System.out.println(); } // Prints an X public static void drawX() { System.out.println("\\ /"); System.out.println(" \\ /"); System.out.println(" \\/"); System.out.println(" /\\"); System.out.println(" / \\"); System.out.println("/ \\"); } }