Question: Java Programming: Create a class ( Shapes ) that prompts the user to select a shape to be drawn on the screen. Objects: Diamond, Hexagon,
Java Programming:
Create a class (Shapes) that prompts the user to select a shape to be drawn on the screen.
Objects: Diamond, Hexagon, Pentagon, Pyramid with an x inside
Depending on the users choice, you will then ask for the number of rows, columns or any requirements needed to draw the shape.
Finally, you will display the shape selected by the user to the screen.
Put main separately in other class, and used just for texting.
Your class needs to check for a correct user input.
Your class should have a method to display the shape.
Your class should have at least one global variable.
Use the asterisk character to draw the shape.
*****************************************************
Submit the UML diagram and Java files
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
