D
DJ Zypher
Assignment: Write a program using text-based (command line) program to produce the following “ASCII graphic” that simulates a weaving pattern. You should notice that there are only two different types of lines printed – one the “negative” of the other. You should also notice that the first horizontal row and/or vertical column do not appear when the pattern repeats. Across the top, the numeric abstraction of the pattern is 1, 2, 4, 8, 4, 2, 1, 2, 4, 8, 4, 2, 1. Along the side, the pattern is the same. You should use a sequence of loops to print the pattern. Also, your program should not use more than four System.out.println() commands. You may not circumvent the println() limit by using embedded newline characters. The output from your program should look like the following:
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
**** SORRY THIS IS SOOO LONG, BUT I AM IN AN INTRODUCTION TO JAVA PROGRAMMING CLASS AND THIS IS MY ASSIGNMENT AND I NEED HELP GETTING STARTED BECAUSE I HAVE NO CLUE...I AM GOING TO GO SEE MY PROFESSOR BUT I WOULD FEEL A LOT BETTER IF I HAD SOMETHING STARTED, PLEASE HELP IF YOU CAN, THANKS!!!!
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
X XXXX XXXX X XXXX XXXX X
XX XXXXXXXX XX XX XXXXXXXX XX
XX XXXXXXXX XX XX XXXXXXXX XX
X XXXX XXXX X XXXX XXXX X
**** SORRY THIS IS SOOO LONG, BUT I AM IN AN INTRODUCTION TO JAVA PROGRAMMING CLASS AND THIS IS MY ASSIGNMENT AND I NEED HELP GETTING STARTED BECAUSE I HAVE NO CLUE...I AM GOING TO GO SEE MY PROFESSOR BUT I WOULD FEEL A LOT BETTER IF I HAD SOMETHING STARTED, PLEASE HELP IF YOU CAN, THANKS!!!!