Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

// CS312 students, DO NOT ALTER THE FOLLOWING LINE except for the literal int. // You may change the literal int assigned to SIZE to any value from 2 to 100. // In the final version of the program you submit set the SIZE to 3. public static final int SIZE = 4;

WHAT AM I DOING WRONG. I CANT get the tower to

align.

https://www.cs.utexas.edu/~scottm/cs312/assignments/A2Tower.html

package weber;

package weberhw;


public class Tower {

// CS312 students, DO NOT ALTER THE FOLLOWING LINE except for the literal int.
// You may change the literal int assigned to SIZE to any value from 2 to 100.
// In the final version of the program you submit set the SIZE to 3.
public static final int SIZE = 4;
public static void main(String[] args) {
Head();
Body();
Stairs();
}
public static void Head(){
topLine();
topbody();
topLine();
}
//Head裡面的東西
public static void topLine(){
for (int i=1; i System.out.print(” “);
}
for (int j=1; j System.out.print(“#”);
}
System.out.println();
}
public static void topbody(){
for (int line=1; line for (int i=1; i System.out.print(” “);
}
for (int j=1; j System.out.print(“|”);
}
System.out.println();
}
}
public static void Body(){
for( int line=1; line Space();
for (int k=1; k System.out.print(“~”);
}
System.out.println();
Space();
System.out.print(“|”);
for (int n=1; n System.out.print(“-O”);
}
System.out.print(“-|”);
System.out.println();
}
Space();
for (int j=1; j System.out.print(“~”);
}
System.out.println();
}
public static void Space(){
for (int space=1; space System.out.print(” “);
}
}
public static void Stairs(){
topStairs();
BottomStairs();
}
public static void topStairs(){
for (int line=1; line
for (int space=1; space System.out.print(” “);}
System.out.print(“/”+”””);
for (int quote=1; quote System.out.print(“‘””);
}
System.out.print(“\”);
System.out.println();
}
}
public static void BottomStairs() {
for (int line=1; line System.out.print(“/”);
for (int j=1; j System.out.print(“”O”)

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"