Changes

Jump to navigation Jump to search
4 bytes added ,  11:29, 4 August 2016
no edit summary
Line 51: Line 51:  
8. Create an equation or formula for surface area of a cylinder. Try to do with units. Do this as a function that converts and does it on units supplied by user automatically if possible.  
 
8. Create an equation or formula for surface area of a cylinder. Try to do with units. Do this as a function that converts and does it on units supplied by user automatically if possible.  
 
===Answer===
 
===Answer===
Surface Area of a cylinder : 2πrh
+
Surface Area of a cylinder : 2πr(h+r)
 
   ar:=2<*>π<*>(r<>(cm))<*>((h<>(cm))<+>(r<>(cm)))
 
   ar:=2<*>π<*>(r<>(cm))<*>((h<>(cm))<+>(r<>(cm)))
 
   ar(10,30)
 
   ar(10,30)
writer
5,435

edits

Navigation menu