This preview shows page 1. Sign up to view the full content.
Unformatted text preview: to be used as inside diameter: '); ID = (P/100)*OD; AreaTopBottom = (pi*(0.5*OD)^2)-(pi*(0.5*ID)^2); CircumferenceOuter = 2*pi*(0.5*OD); CircumferenceInner = 2*pi*(0.5*ID); Volume = AreaTopBottom*H; SurfaceArea = (CircumferenceOuter*H)+(CircmferenceInner*H)+AreaTopBottom ; fprintf (' For a cylinder with outside diameter = %f %s and height =%f %s\n' , OD, EoSI ,H, EoSI) fprintf(' Volume = %f %s^3\n', Volume, EoSI) fprintf( ' Surface Area = %f %s^2 \n', SurfaceArea, EoSI)...
View Full Document
This note was uploaded on 09/19/2011 for the course ENGE 1114 taught by Professor Twknott during the Fall '06 term at Virginia Tech.
- Fall '06