Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Instructions You are to write a program that can produces an ASCII Art picture.You should use nested loops to reduce repeating code for specific characters on a given line.You should use static method

Instructions

  • You are to write a program that can produces an ASCII Art picture.
  • You should use nested loops to reduce repeating code for specific characters on a given line.
  • You should use static methods to structure your solution in order to reduce repeating code for repetitious subfigures.
  • You are required to properly indent your code and will lose points if you make indentation mistakes.

You should begin by trying to reproduce the figure above exactly. Once you can reproduce this firecracker, you should introduce a class constant to your code to make your solution more flexible in order to allow firecrackers of different sizes to be produced.

Class Constant

 this program can have varying output results based on the value assigned to a single class constant. This class constant determines the height of the firecracker. The firecracker shown above has a height of 5.

  • Define 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. When you submit your code, it does not matter what the value of your constant is set at, as I will change the constant to test your code for various output results.
  • On any given execution your program will produce just one version of this figure.

Examples are attached below!

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question