Question: Matlab code. 9. A paper cup is designed to have a geometry ofa frustum of a cone. Write a user-defined function that determines the volume
9. A paper cup is designed to have a geometry ofa frustum of a cone. Write a user-defined function that determines the volume and the surface area (side plus bottom) of the cup for given values of r, R, and h. For the function name and arguments, use [v, S] - VolSArea (r, R, h). The input arguments r, R, and h are the radius of the base, the radius of the top and the height, respectively (all in units of inches). The out- put arguments V and s are the volume (in units of U.S. fluid ounce) and the surface area (in units of in.2), respectively. Use the function to determine the volume and the surface area of cups with the following dimensions: (a) r = 2 in., R = 3.5 in., h = 4.25 in. (b) r-2.5in., R-3.5 in., h 4.5 in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
