Question
IN JAVA LANGUAGE PLEASE! You are to exactly reproduce this output. The various subfigures in the middle of this output have a height of 3.
IN JAVA LANGUAGE PLEASE!
You are to exactly reproduce this output. The various subfigures in the middle of this output have a height of 3. These subfigures have the property that their height determines their width, so there is only one size variable. You are to use a class constant to make it possible to change a single number in one place in the program to have it produce a corresponding figure of a different size. This will require you to create nested for loops with print and println statements that use the class constant. You should continue to use static methods to structure your solution. You should try to avoid significant redundancy and you should structure your program in such a way that the methods match the structure of the output itself.
So basically to write a for loop structure program that draws this:
This is what i have so far:
public class DrawRocketShell { public static final int SIZE=3; public static void main(String[] args) { drawCone(); drawLine(); drawHalf(); // drawCone(); } public static void drawCone() { //for loop for the line for (int line = 1; line INI 177**II !! NVNNV NVNNV !! INI
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started