/*
 * BlockLetters3.java
 * Dave Sullivan (dgs@cs.bu.edu)
 * 
 * This program displays the name "DEE" in block letters on the screen.
 * It demonstrates the use of procedural decomposition using static methods.
 */

public class BlockLetters3 {
    /*
     * writeE - outputs a block letter E to the console
     */
    public static void writeE() {
        System.out.println("    +-----");
        System.out.println("    |");
        System.out.println("    +----");
        System.out.println("    |");
        System.out.println("    +-----");    
    }
    
    /*
     * writeD - outputs a block letter D to the console
     *
     * NOTE: We use a separate method for this even though the verse is
     * never repeated. Using a separate method allows us to capture the
     * *structure* of the program, since printing a verse is a logical
     * subtask of the overall task.
     */
    public static void writeD() {
        System.out.println("    -----");
        System.out.println("     |   \\");
        System.out.println("     |    |");
        System.out.println("     |   /");
        System.out.println("    -----");
    }
    
    public static void main(String[] args) {
        writeD();
        System.out.println();
        writeE();
        System.out.println();
        writeE();
    }
}
