Published using Google Docs
OOP 4 - Geometry (20s Version)
Updated automatically every 5 minutes

OOP 4 - Geometry

CS20 AP

Main goal of assignment: to work with Multiple Classes, each with multiple Constructors

Create the package OOP4Geometry and the classes you need for this assignment in your Object Oriented Programming (OOP) project.

This package will have 3 files:

Circle Class 

        public void printVolume()

Rectangle Class

Main Class 

Man Hole has the following properties:

Man Hole’s Area is equal to ___ metres squared.

Man Hole’s Circumference is equal to ___ metres squared.

Man Hole is not a cylinder.  Volume can not be computed. 

Tower Of Pisa has the following properties:

Tower Of Pisa’s Area is equal to ___ metres squared.

Tower Of Pisa’s Circumference is equal to ___ metres squared.

The Tower of Pisa is a cylinder.  It has a volume of ___ cubic metres.

Next 10% - Searching

Create a Looping search option so that you can search by the name of the circle or rectangle.  If you are using 2 separate ArrayLists, do the two searches separately.  If you are going to implement the Final 10% (single ArrayList), you will only have a single search.

        What circle do you want to search for?

        Tower of Pisa

        Tower Of Pisa has the following properties:

        …

        What rectangle do you want to search for?

Final 10%

Evaluation

Circle class:                                        30%

Rectangle class:                                20% (worth less as it is almost the same as the above)

Main method                                        30%

Searching                                        10%

Final 10% (using a single list)                        10%