Question: Create an application with four classes. Three of the classes should contain data and behavior characteristics for circle, rectangle, and cylinder. You could extend your

Create an application with four classes. Three of the classes should contain data and behavior characteristics for circle, rectangle, and cylinder.

You could extend your solution to problem number 6 and provide behaviors based on the type of object instantiated. For example, in addition to calculating the area of a circle, also provide methods to calculate circumference or radius. For the rectangle, consider providing behaviors to calculate perimeter and the polygon diagonals. For cylinder, consider providing behaviors to calculate the volume and surface area for a closed cylinder. The fourth class should allow the user to input a figure type from a menu of options. Prompt for appropriate values based on the inputted figure type, instantiate an object of the type entered, and display characteristics about the object.

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 Systems Analysis Design Questions!