Question: please solve this using java 3. Every cylinder has a base and height, where the base is a circle. Design the class Cylinder that can

 please solve this using java 3. Every cylinder has a baseand height, where the base is a circle. Design the class Cylinder

please solve this using java

3. Every cylinder has a base and height, where the base is a circle. Design the class Cylinder that can capture the properties of a cylinder and perform the usual operations on a cylinder. Derive this class from the class Circle that we already designed in #2. Some of the operations that can be performed on a cylinder are as follows: calculate and print the volume, calculate and print the surface area, set the height, set the radius of the base, and set the center of the base. The class Cylinder should contain the following methods and data member: protected member height default constructor constructor with parameters setCylinder(x) getHeight() setHeight() toString() equals(x) makeCopy(x) getCopy(). printCylinder() surfaceAreal) volume) The output should show the following: Initialize myCylinder to (5.00, 4.00,7.23, 2.30) Initialize yourCylinder to (2.00, 0.00, 0.00, 0.00) Set yourCylinder to (5.00, 45.00, 82.20, 2.80) Determine the surface area of yourCylinder: ??? Determine the volume of yourCylinder: ??? Determine if the 2 cylinders are equal or not Enter the center with:15.0, 8.75), radius with 52.0, height with 12.5 Set myCylinder to (5.00, 8.75, 52.00, 12.50) - Copy myCylinder into your Cylinder and print yourCylinder Print your program to test the class Cylinder Paste the output after the program Print the Cylinder, Circle, AND Point classes

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!