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)+(CircumferenceInner*H)+(2*(AreaTopBottom)) ; fprintf (' Inside Diameter = %0.2f %s\n', ID, EoSI) fprintf(' Volume = %0.1f %s^3\n', Volume, EoSI) fprintf( ' Surface Area = %0.1f %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