Question: Create a program named diamond.java. The program should display a diamond shape out of asterisks based on an input value provided by the user. 4)
Create a program named diamond.java. The program should display a diamond shape out of asterisks based on an input value provided by the user. 4) Prompt the user enter an integer. 5) Write validation logic to reprompt the user if the number is less than 1. This will require a loop. 6) In the comments at the end of the code determine a growth function with all terms. 7) Then describe the O() of the code that draws the diamond
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
