/* We'll develop some pseudocode here.
 * 
 * repeat 3 times:
 *   print 8 forward slashes - method call
 *   print 8 backslashes     - method call
 * 
 * expect to replace 3 and 8 by class constants
 * 
 */ 

public class Wavy {
  // A couple class constants will go here.
  
  // print an ASCII picture of waves
  public static void main(String[] args) {
    // Change this so that the height and width can be varied.
    /*
    System.out.println("////////");
    System.out.println("\\\\\\\\");
    System.out.println("////////");
    System.out.println("\\\\\\\\\\\\\\\\");
    System.out.println("////////");
    System.out.println("\\\\\\\\");
    */
    
    for (int wave = 1; wave <= 3; wave++) {
      forward();
      backward();
    }
  }
  
  // A static method will go here.
  public static void forward() {
    for (int i = 0; i < 8; i++) {
      System.out.print("/");
    }
    System.out.println();
  }
  
  public static void backward() {
    for (int i = 0; i < 8; i++) {
      System.out.print("\\");
    }
    System.out.println();
  }
}








