class SurfaceAreaApp
import blue.shapes. *;
/ /Record the given information.
double cylinderHeight = 28.5;
double cylinderDiameter = 11.6;
/ /Create the top.
double topRadius = (cylinderDiameter / 2.0);
Circle top = new Circle (topRadius);
/ /Create the bottom.
double bottomRadius = topRadius;
Circle bottom = new Circle (bottomRadius);
/ /Create the side.
double sideHeight = cylinderHeight;
double sideLength = top.perimeter ();
Rectangle side = new Rectangle (sideHeight, sideLength);
/ /Compute the surface area.
double sa = top.area () + bottom.area () + side.area ();
/ /Display result.
IO.println (``The surface area = ``+ sa + ``square units.'');