Discuss the below:
Q: Write a library Cylinder containing functions to compute the total surface area, lateral surface area, and volume of a right-circular cylinder. For a cylinder of radius r and height h, these can be calculated using:
Total Surface Area = 2 x Pi r(r + h)
Lateral Surface Area = 2 x Pi rh
Volume = Pi r squared h
Write a driver program to test your library.