Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design, implement and test a set of Java classes that allows a user to select a shape from a list of available shapes, enter appropriate

Design, implement and test a set of Java classes that allows a user to select a shape from a list of available shapes, enter appropriate dimensional parameters and then display that shape in a frame of your Swing-based GUI. For 3-D shapes consider loading an image from a file and displaying that as a representative. Your list of shapes should be similar, if not identical to the ones used in project one: • Circle • Square • Triangle • Rectangle • Sphere • Cube • Cone • Cylinder • Torus Take advantage of various Swing AWT components including Layout Managers, Event Handlers, Listener Interfaces, Adapter Classes, Inner Classes, Buttons and other widgets as needed. Take your time on understanding how the graphical components and listeners work so you can easily display appropriate actions based on any event.  can you help me implement this program based on this design below

 

Design:  The program will have two options that is Two-Dimensional Shape and Three-Dimensional Shape in hierarchy structure. The program has shapes class which is the parent class. The shapes then have inherited classes that is three dimensions and two dimensions classes The program will have Joption menu interface that allows one to select the shape. The program then asks for required inputs.


Calculate as per the requirements, that is as area or volume. The program displays the shape. 2D shapes area created using frames to show the drawings3D shapes area displayed using images that are fit to the scale. 

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Programming

Authors: Joyce Farrell

9th edition

1337397075, 978-1337397070

More Books

Students also viewed these Programming questions

Question

What is marginal cost Explain with an example.

Answered: 1 week ago

Question

11 What measures can be undertaken to minimize political risk?

Answered: 1 week ago