Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The surface area and volume of a frustum of a cone of radii r,ra and height h, as shown in Fig., are h ! 1

image text in transcribed

The surface area and volume of a frustum of a cone of radii r,ra and height h, as shown in Fig., are h ! 1 S = n(r + r2)/(r2 - r)2 + h2 + (r+ r) (1) V = zah(r? +riz +r3) (2) It is required to determine the volume and surface area of frustum cones of the dimensions shown in the following table r1 [cm] 2.5 r2 [cm] 3.2 h [cm] 4.4 S[cm] V[cm3] 131.586874757492 112.841819326741 5 12.7 19.3 8.5 7.2 10.4 15.0 3.5 8 Work this problem in two ways: 1. Write a script file with the name HW2P1.m that: a. Assign values to variables R1, R2, and H. Use a semicolon at the end of each statement in order to suppress the display of these variables. b. Determine the surface area and volume from equations (1) and (2) and assign them to variables S and V. Do not use a semicolon at the end of these commands to display the results in the command window. C. Edit this file multiple times for various values of R1, R2, and H and run the file each time to display the values of S and V. 2. Write a function file with the name fHW2P1.m that: a. Takes R1, R2, and H as input arguments b. Determines the surface area S and volume V from equations (1) and (2) and returns them as output arguments. C. Use/call the function from the command window multiple times for various values of R1, R2, and H to display the values of both S and V. Use the first several lines of your script/functions to describe the problem you are solving in the comments

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions