Question: Part 2 : Draw another Diamonds with different sizes ( 5 points ) Now, you will update Part 1 to produce a bigger diamond look

Part2: Draw another Diamonds with different sizes (5 points)
Now, you will update Part 1 to produce a bigger diamond look like this with Size=9.
Let's first add a Java class names AsciiPart2 in a file named AsciiPart2.java. Copy/Paste your
code from Part 1.
Create a class constant to represent the size of the diamond, name SIZE, before your main.
i.e. public static final int SIZE =4;
Use 4 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 1 is 4, and the size of the diamond
in Part 2 is 9.
No print/println 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: println().practice and Escape Sequence
a comment at the very bottom of your AsciiPart2.java 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
Canvas(Notes: for loops and variable scope). or google to find out how to use it.
Part 2 : Draw another Diamonds with different

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!