Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Mahek Gupta
- 10/13/19
- */
- public class SeattleTower {
- public static final int COUNT = 4;
- public static void main(String[] args)
- {
- top();
- roof();
- mid();
- roofBottom();
- top();
- neck();
- roof();
- mid();
- }
- public static void top()
- {
- for (int line = 1; line <= COUNT; line++)
- System.out.println(" ||");
- }
- public static void roof()
- {
- for (int line = 1; line <= COUNT; line++)
- {
- space(line);
- System.out.print("__/");
- for (int colon = 0; colon < line * COUNT - COUNT - (line - 1); colon++)
- {
- System.out.print(":");
- }
- System.out.print("||");
- for (int colon = 0; colon < line * COUNT - COUNT - 1; colon++)
- {
- System.out.print(":");
- }
- System.out.println("\\__");
- }
- }
- public static void space(int line)
- {
- for (int space = 1; space <= line * -3 + COUNT * 3; space++)
- {
- System.out.print(" ");
- }
- }
- public static void mid()
- {
- System.out.print(" |");
- for (int quotation = 1; quotation <= COUNT * 6; quotation++)
- {
- System.out.print("\"");
- }
- System.out.println("|");
- }
- public static void roofBottom()
- {
- for (int line = 1; line <= COUNT; line++)
- {
- for (int space = 1; space <= 2 * line - 2; space++)
- {
- System.out.print(" ");
- }
- System.out.print("\\_");
- for (int sign = 1; sign <= -2 * line + (3 * COUNT + 1); sign++)
- {
- System.out.print("/\\");
- }
- System.out.print("_/");
- System.out.println();
- }
- }
- public static void neck()
- {
- for (int line = 1; line <= COUNT * COUNT; line++)
- {
- System.out.println(" |%%||%%|");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement