Write an applet that asks the user to enter either "oval", "circle",

 

"square" or "rectangle" and then draws that object.  Any other input

 

results in an error message.

 

The user also enters the size of the object (radius for a circle,

 

length for a square, height and width for oval or rectangle).

 

The user also enters the center point (i.e. x and y) of the object.

 

The user chooses which of the dozen standard colors to fill the object

 

(the user will enter a color name, not a number).

 

    • 10 years ago
    complete solution
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      shapehomework.java
    • attachment
      shapehomework.zip