Question: Please type code dont write on pen/pencil. Test/run before sending. USE CONSTANTS PROVIDED BELOW. Please make it catch the following errors: Size is not a
Program 2: RadioactivePinwheel Write a Java application (RadioactivePinwheel.java) that displays the following radioactive pinwheel design to the terminal using nested loops. The user will be required to enter the size of the pinwheel and can optionally specify the characters to use to draw the pinwheel. Like ShortLongWords from PA2, this is a standalone application with no graphical elements (you do not need objectdraw or Acme.MainFrame for this program) Example: *0000000 **00000*** **000*** size number of rows upward triangle downward triangle 00000***00000 000****000 0***0 size: 8 upward triangle char: downward triangle char: o Requirements for this Program You may only print one character at a time. Do not use a string with the pattern. You are not allowed to use a String or StringBuilder or StringBuffer or any data structure to build each line to be output. You must calculate how many times to loop printing a single upward triangle character at a time, how many times to loop printing a single downward triangle character at a time, and how many times to loop printing a single space character at a time You must create at least one helper method. Try to modularize your design so you don't have all of your code in one giant main) method. Think about how you could split up the different parts of the program (hint-the way the writeup splits up the different parts of the program is a good place to start that train of thought)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
