Question: 6 points) Write a Java program that uses nested loops to draw figures using characters of the users choice. A sample run of the program
6 points) Write a Java program that uses nested loops to draw figures using characters of the users choice. A sample run of the program is shown below:
Please use while and for loop
Choose an option
Draw a Diamond
Draw an Hourglass
Draw a Hollow Rectangle
Quit
Your choice: 3
Enter character to draw with: *
* * * * * * * * * *
* * *
*
* * * * * * * * * *
Choose an option
Draw a Diamond
Draw an Hourglass
Draw a Hollow Rectangle
Quit
Your choice: 2
Enter character to draw with: #
# # # # # # # # #
# # # # # #
#
# #
# # #
# # # #
# # # # #
Choose an option
Draw a Diamond
Draw an Hourglass
Draw a Hollow Rectangle
Quit
Your choice: 1
Enter character to draw with: @
@
@ @
@ @ @ @ @
@
Choose an option
Draw a Diamond
Draw an Hourglass
Draw a Hollow Rectangle
Quit
Your choice: 4
OK, thanks for playing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
