Question: Part 2 : Draw another Diamonds with different sizes ( 5 points ) Now, you will update Part 1 to produce a bigger diamond look
Part: Draw another Diamonds with different sizes points
Now, you will update Part to produce a bigger diamond look like this with Size
Let's first add a Java class names AsciiPart in a file named AsciiPartjava. CopyPaste your
code from Part
Create a class constant to represent the size of the diamond, name SIZE, before your main.
ie public static final int SIZE ;
Use as the value of your constant and update your code throughout your code, so that by
simply changing your constant's value, your program would produce a diamond of a
different size. Note that the size of the diamond in Part is and the size of the diamond
in Part is
No printprintln statements should appear in your main method
Include comments
a comment header at the beginning of your program with basic information and a title of
the assignment as we learned from Notes: printlnpractice and Escape Sequence
a comment at the very bottom of your AsciiPartjava that shows the output
Note that I have not taught you about constant in the videos; however, part of coding is
looking up information effectively, so I expect you to review the written notes in
CanvasNotes: for loops and variable scope or google to find out how to use it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
