Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5 P10-03: Cost of covering a cylinder 20.15.1: P10-03 Cost of covering a cylinde

ID: 3732808 • Letter: 5

Question

5 P10-03: Cost of covering a cylinder 20.15.1: P10-03 Cost of covering a cylinder his tool is provided by a third party Though your activity may be recorded, a page nefresh may be needed to fill the banner 0/100 P10-03: Cost of covering a cylinder We need to cover a closed, right cyinder with a particular material. The cost of that material is C dollars per square foot. The dimensions of the cylinder, R and H1or radius and height, are given in inches white a tuncton CostToCover that returns the cost to cover a closet ng cyinder. None that you'i have to convert from square inches to square feet, and then round up to the nearest square foot (the material can only be purchased in whole numbers). To round up in MATLAB, use the celil tunction; for pi use the predefined MATLAB variable pi Example: tor C 4.5, R 32, and H-73, the cost is 661.5000. Your Function H Save C Reset MATLAB Documentation 1 function cost CostToCoveriC, R, H) 2 ceilipi): 3COst-1 Code to call your function C Reset CostToCover14.5, 32, 73 80 2

Explanation / Answer

function cost = ConstToCover(C, R, H)

piVal = ceil(pi);

RSQFeet = ceil(144 * R);

HSQFeet = ceil(144 * H);

cost = 2 * piVal * RSQFeet * HSQFeet + 2 * piVal * (RSQFeet^2);

end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote