Question: Write a java program that prompts the user to select a shape to be drawn on the screen. Objects: hexagon, diamond Depending on the users

Write a java program that prompts the user to select a shape to be drawn on the screen.

Objects: hexagon, diamond

Depending on the users choice from a Menu (Create a method to ask the user input), you will then ask for a number of rows or any requirements needed to draw the shape.

Create an enumeration (enum) for the Menu method.

No main method only the shape class

Every time a user creates a shape the output needs to be written to a file.

Create an Array of object (Shapes) to stores the objects created by the user. Remember to make the array large so that you don't have to run out of space.

Finally, you will display the shape selected by the user to the screen

Your project will need to loop for as long as the user wants (you pick your choice of a loop) for example, the user has the option to draw more than one object.

Every shape should be implemented in a function (your choice how).

Make sure no wrong input by the user is allowed.

Use the asterisk character to draw the shapes.

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!