/*DrawMarsh2.java
* Omeed Askari (Omeed@bu.edu)
*This program, when run, will draw Marsh Chappell.*/
public class DrawMarsh2
{
public static void main (String args[])
{
DrawMarsh();
}
public static void DrawMarsh()
{
//*****assign a new value to the variable constantValue to scale the image*****
int constantValue = 4;
//Height of Chappell
int chappellHeight = (constantValue * 4) + 2;
//Wall width of Chappell ||
int chappellWallWidth = constantValue / 2;
//Spaces in Roof
int roofSpace = (int) (constantValue * 2.5);
//cross width
int crossWidth = chappellWallWidth;
//**Draw the Cross**
// Draw roofSpace
for (int i = 0; i < roofSpace; i++)
{
System.out.print(" ");
}
//Draw crosses
for (int i = 0; i < crossWidth; i++)
{
System.out.print("+");
}
System.out.println();
//Cross done
//**Draw roof**
//Draw Wall Height
for (int wh = 0; wh < constantValue; wh++)
{
//Draw left side of wall
printChars( '|', chappellWallWidth); /***********************************************************<--look here
}
}
/*
//variable for inner roof spaces
int innerRoofSpaces = (constantValue - wh - 1) * 2;
//Draw inner roof spaces
for (int rs = 0; rs < innerRoofSpaces; rs++)
{
System.out.print(" ");
}
//Draw "_/" connected to inner roof spaces
System.out.print("_/");
//variable for ::'s
int roofFiller = (constantValue * 2) - innerRoofSpaces - 2;
//Draw filler on left of roof
for (int f = 0; f < roofFiller; f++)
{
System.out.print(":");
}
//Draw center column
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//Draw filler on right of roof
for (int f = 0; f < roofFiller; f++)
{
System.out.print(":");
}
//Draw left side of roof "\_"
System.out.print("\\_");
//Draw inner roof spaces
for (int rs = 0; rs < innerRoofSpaces; rs++)
{
System.out.print(" ");
}
//Draw right side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
System.out.println();
}
// **Done with roof**
//**Draw top portion of church**
//Draw Wall Height
for (int wh = 0; wh < constantValue; wh++)
{
//Draw left side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//Draw top portion fillers:: fillers
//Variable for top portion filler
int topFiller = (constantValue * 2) - wh - 1;
for(int f = 0; f < topFiller; f++)
{
System.out.print(":");
}
//print left arching
System.out.print("/");
//print left periods inside of arch
//Variable for periods inside arch
int innerArch = (constantValue * 2) - topFiller - 1;
for (int p = 0; p < innerArch; p++)
{
System.out.print(".");
}
//Draw center column
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//print right side innerARch
for (int p = 0; p < innerArch; p++)
{
System.out.print(".");
}
//print right side of arch
System.out.print("\\");
//print right side filler
for(int f = 0; f < topFiller; f++)
{
System.out.print(":");
}
//Draw left side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//**Done with top portion**
System.out.println();
}
//**Top Door Portion
//Variables
// Filler ::'s
int doorFiller = constantValue - 1;
//draw door
int door = constantValue;
//Start with Chappell height again.
for (int wh = 0; wh < constantValue; wh++)
{
//Draw left side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//Draw door Filler
for (int df = 0; df < doorFiller; df++)
{
System.out.print(":");
}
//Print Left Door Edge
System.out.print("|");
//Draw door (left)
for (int d = 0; d < door; d++)
{
System.out.print(".");
}
//Draw center column
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//Draw door (right)
for (int d = 0; d < door; d++)
{
System.out.print(".");
}
//Print right Door Edge
System.out.print("|");
//Draw door Filler
for (int df = 0; df < doorFiller; df++)
{
System.out.print(":");
}
//Draw right side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//**dont with top of door
System.out.println();
}
//Draw door border "===="
//Variable for doorBorder
int doorBorder = (2 * (2 * constantValue) + (constantValue / 2));
//Draw left side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//draw doorBorder top
for (int db = 0; db < doorBorder; db++)
{
System.out.print("=");
}
//Draw right side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//***done with door border top
System.out.println();
//**Bottom Door Portion
//Start with Chappell height again.
for (int wh = 0; wh < constantValue; wh++)
{
//Draw left side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//Draw door Filler
for (int df = 0; df < doorFiller; df++)
{
System.out.print(":");
}
//Print Left Door Edge
System.out.print("|");
//Draw door (left)
for (int d = 0; d < door; d++)
{
System.out.print(".");
}
//Draw center column
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//Draw door (right)
for (int d = 0; d < door; d++)
{
System.out.print(".");
}
//Print right Door Edge
System.out.print("|");
//Draw right side door Filler
for (int df = 0; df < doorFiller; df++)
{
System.out.print(":");
}
//Draw right side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//**dont with bottom of door
System.out.println();
}
//Draw door border "====" (base of chappell)
//Draw left side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//draw doorBorder top
for (int db = 0; db < doorBorder; db++)
{
System.out.print("=");
}
//Draw right side of wall
for (int j = 0; j < chappellWallWidth; j++)
{
System.out.print("|");
}
//***done with door border bottom (base of chappell)
System.out.println();
*/
}