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

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 Databases Questions!