/||\ //||\\ ///||\\\ ////||\\\\ /////||\\\\\ +-*-*-*-*-*-*+ |../\..../\..| |./\/\../\/\.| |/\/\/\/\/\/\| |\/\/\/\/\/\/| |.\/\/..\/\/.| |..\/....\/..| +-*-*-*-*-*-*+ |\/\/\/\/\/\/| |.\/\/..\/\/.| |..\/....\/..| |../\..../\..| |./\/\../\/\.| |/\/\/\/\/\/\| +-*-*-*-*-*-*+ /||\ //||\\ ///||\\\ ////||\\\\ /////||\\\\\You should reproduce the format of this output exactly. This includes having identical characters and spacing. One way to write a Java program to draw this figure would be to write a System.out.println statement that prints each line of the rocket. However, this solution will receive NO credit. A major part of this assignment is showing that you understand for loops; therefore, in lines that have repeated patterns of characters that vary in number from line to line, represent the lines and character patterns using appropriate nested for loops. (The Hourglass program in Chapter 2's case study is a good example of this.) It may help you to write pseudo-code and tables to understand the patterns in the output, as described in the textbook and lecture.
You should create a global constant to represent the rocket ship's subfigure height. The various subfigures in the middle of this output have a height of 3, so 3 should be the value of your constant. These subfigures have the property that their height determines their width; therefore, you do not need a second constant to represent the width (and you should NOT use one). Your constant must use the value of 3 to receive credit. |
/||\ //||\\ ///||\\\ ////||\\\\ /////||\\\\\ //////||\\\\\\ ///////||\\\\\\\ ////////||\\\\\\\\ /////////||\\\\\\\\\ +-*-*-*-*-*-*-*-*-*-*+ |..../\......../\....| |.../\/\....../\/\...| |../\/\/\..../\/\/\..| |./\/\/\/\../\/\/\/\.| |/\/\/\/\/\/\/\/\/\/\| |\/\/\/\/\/\/\/\/\/\/| |.\/\/\/\/..\/\/\/\/.| |..\/\/\/....\/\/\/..| |...\/\/......\/\/...| |....\/........\/....| +-*-*-*-*-*-*-*-*-*-*+ |\/\/\/\/\/\/\/\/\/\/| |.\/\/\/\/..\/\/\/\/.| |..\/\/\/....\/\/\/..| |...\/\/......\/\/...| |....\/........\/....| |..../\......../\....| |.../\/\....../\/\...| |../\/\/\..../\/\/\..| |./\/\/\/\../\/\/\/\.| |/\/\/\/\/\/\/\/\/\/\| +-*-*-*-*-*-*-*-*-*-*+ /||\ //||\\ ///||\\\ ////||\\\\ /////||\\\\\ //////||\\\\\\ ///////||\\\\\\\ ////////||\\\\\\\\ /////////||\\\\\\\\\
more /home/student/Submit/201/xxxx/Rocket.javaThis goes to the submission location and displays the copy of your program found there.
Your program MUST compile ERROR FREE to receive any credit! Your program MUST use for loops to receive any credit. Correct submission of project (both electronic and hard copy) 3 pts Correct program behavior 9 pts Program uses a constant that can be changed to change the number of terms printed 6 pts Program uses static methods to remove redundancy 6 pts Program aesthetics 6 pts Total 30 pts