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


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.



Nov 24, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here