Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help in java data structures. Please show results. Thank you. Objectives: To gain experience with using java interface, abstract class, base class and subclass.

image text in transcribed
Need help in java data structures. Please show results. Thank you.
Objectives: To gain experience with using java interface, abstract class, base class and subclass. Documentation: Explain the purpose of the program as detail as possible 8%. 2 Develop a solution for the problem and mention algorithms to be used -12% List data structures to be used in solution. 5%. 4 Give a description of how to use the program and expected input/output 5% 5.Explain the purpose of each class you develop in the program. 5%. Programming: 1.For each method, give the pre and post conditions and invariant, if any 10 2 Program execution according to the requirements given 50% 3 Naming of program as required 5% Description of Program You are to write a program name Shape java that will: Write an inheritance hierarchy of three-dimensional shapes Make a top-level shape interface that has methods for getting information such as volume and surface area of three- dimensional shape. Now make classes that are subclasses that implement various shapes such as cubes, rectangular prisms, triangular prisms, sphere, cones and cylinders. Place common behavior in super classes whenever possible as well as using abstract classes when appropriate Add methods to the subclasses to represent unique behavior of each three-dimensional shape such as methods to get a sphere's radius, etc. All of these will be used in the main program Shapejava (where you must invoke the methods from the subclasses and print values such as area, circumference, volume, perimeter, etc. where possible.)

Step by Step Solution

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

More Books

Students also viewed these Databases questions

Question

Explain how to build high-performance service delivery teams.

Answered: 1 week ago