Electrical and Computer Engineering
19 of 29
UAH
CPE 112
•Convert dimensions to Feet
• Set heightInFt = HT_IN_INCHES/INCHES_PER_FT
• set diamInFt = DIAM_IN_INCHES/INCHES_PER_FT
•
•Compute Surface Area
• Set surfaceArea = pi x radius xsqrt(radius2 + heightInFt2)