Write a method called cylinderSurfaceArea that accepts a radius and height as parameters and returns the surface

Question:

Write a method called cylinderSurfaceArea that accepts a radius and height as parameters and returns the surface area of a cylinder with those dimensions. For example, the call cylinderSurfaceArea(3.0, 4.5) should return 141.3716694115407. The formula for the surface area of a cylinder with radius and height is the following:

surface area = 2πr2 + 2πrh

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: