Question: 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.

 Need help in java data structures. Please show results. Thank you.
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

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!