C Design Implement Class Simulate Cylinder Call Class Cylinder Name Instance Variables Rad Q37229487

For C++ design and implement a class that will simulate acylinder; call the classCylinder. Name your instance variables radius andheight. Have functions called calculateSurfaceArea andcalculateVolume. These functions should implement the formulasshown in the graphic below.

Cylinder

Implement Accessors and Mutators for all instance variables ofthe class. Have two constructors; the first will be the defaultconstructor (set all instance variables to 1) and the second willbe a constructor that will pass values to set the instancevariables to the object.   Develop a functionprintCylinderInfo which will print a four line description of thecylinder. It will output a neat formatted string showing

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.