Question: 4. Write a script file that calculates the volume and surface area of a cone if its radius is given as r=7 mm and its
4. Write a script file that calculates the volume and surface area of a cone if its radius is given as r=7 mm and its height is given as h=15 mm. The surface area of a cone is given by A-r 1 + r2 where Vr2h2 and the volume is given by Vr2h. Use fprintf command to display the results with 2 decimal points in a descriptive text and include units (mm2 and mm2). See Exampl le of a Script File' in page 32 for sample script file and see the posted sample script
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
