Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A cylinder is a 3-dimensional figure that has a circular top and bottom (picture

ID: 3636221 • Letter: A

Question

A cylinder is a 3-dimensional figure that has a circular top and bottom (picture a soup can).

If you know the radius of the top and the height of the cylinder (can), you can determine

the volume in cubic units (how much it holds)

volume = height multiplied by top_area*


the volume in US fluid ounces

the lateral area in square units (the area of the sides of the can)

lateral area = height multiplied by top_circumference**


the surface area in square units (the area of the sides, top, and bottom)

surface area = lateral area + top_area + bottom_area
where

p = 3.14159 r = radius of top



* top_area = p r²


** top_circumference = 2p r

1 cu in = 0.554112554 US fluid ounces


uses named constants for fixed values
displays your name, section #, and the assignment #

prompts for and reads (in the following order)

the height of a cylinder
the diameter of the top of the cylinder - assume both values represent inches (use double type variables to store these values)
computes the cylinder's volume in cubic inches
computes the cylinder's lateral area and surface area in square inches
converts volume into US fluid ounces

displays the 2 input values and the 4 computed values with appropriate labels - do not attempt to define the format of the values (number of digits to the right of the decimal) - use the labels shown in the example and leave a blank line between the input values and computed results




Explanation / Answer

#include #include #include void main() { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote