A contractor is to build a rectangular swimming pool that has a length of L feet
ID: 2074500 • Letter: A
Question
A contractor is to build a rectangular swimming pool that has a length of L feet and a width of W feet. A tile border of uniform width B is to be built around the outside of the pool (all 4 sides) using 1100 square feet of tile. The tile was purchased as discontinued stock so no additional tile is available 6. Create an anonymous function the contractor can use to calculate the width of the tile border B in terms of the length L and width W of the pool. (Hint: Model the geometry for this problem. The resulting equation will be a quadratic equation. Choose the "positive"sign when solving for the roots to the quadratic equation... B must be a positive value. Etaluate the function for L = 40 and w = 35 Evaluate the function for L = 80 and w 65 a. b. c. Partial Solutions ***Note -do not attempt to recreate the watermark over the plots. The watermark is there to prevent copying/pasting solutions into Word without getting the code to work. Use these answers as guides to help you learn how to write the code. 3.Explanation / Answer
the quadratic equation can be obtained as follows
area of outer border - area of swimming pool = area of tiles
,i.e., (L + 2B)(W + 2B) - LW = 1100
,i.e., 4B2 + 2(L+W)B - 1100 = 0
a MATLAB function
global L;
global W;
L = input('enter L :');
W = input('enter W :');
p = [4 2*(L+W) -1100];
r = roots(p);
BorderWidth = r(r>=0)
b
enter L :40
enter W :35
BorderWidth =
6.2812
c
enter L :80
enter W :65
BorderWidth =
3.6130
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.