Question: Create a C++ class code Design and build a Cylinder class. The class should include the necessary private data members, accessor and mutator functions as
Design and build a Cylinder class. The class should include the necessary private data members, accessor and mutator functions as well as a member function which calculates and returns the volume and another to calculate and return the side surface area of the cylinder Demonstrate the class by creating a dynamically allocated array of at least 4 cylinders. You may ask the user for length and radius or use randomly generated values which it will use to create Cylinder objects. Also demonstrate the ability to change at least 2 cylinders' dimensions. Display each cylinder's dimensions before and after they are changed The formulas for volume and surface area are below Volume of a cylinder Where V is the cylinder's volume r is the cylinder's radius, and l is the cylinder's length Surface area of a cylinder Where S is the cylinder's side surface area, r is the cylinder's radius, and l is the cylinder's length S 2Ttrl Please submit the following: 1. Your UML diagram 2. The project folder containing your entire project 3. The program output Points will be given based on the following requirements: . Program Specifications Correctness Code Efficiency Readability Documentation .Assignment Specifications See CIS-2541 Assignment Grading Guidelines for details
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
