Question: ( 3 5 points ) You have a cylindrical silo ( radius r ) with a spherical cap roof ( radius R ) . The
points You have a cylindrical silo radius with a spherical cap roof radius The cylindrical portion has a height of meters. The volume of the silo can be obtained by adding the volume of the cylindrical part to the volume of the spherical cap :
where and
The suface area of the silo can be obtained by adding the surface areas of the cylindrical part and spherical cap
Write an interactive function file to calculate the total volume and total surface area of a cylindrical silo for different values of and Your function should not accept any input arguments, but should ask the user interactively to enter values of and of the silo. It should return two output arguments; ie the total volume and surface area of the silo. You can test your program to with and Make sure that your results are displayed in short format either in scientific or fixedpoint notation, whichever is more compact and convenient.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
