Question

[5 pts] Find the dimensions of the rectangular garden producing the greatest enclosed area given 200...

[5 pts] Find the dimensions of the rectangular garden producing the greatest enclosed area given 200 feet of fencing.

Answer has to be in MatLab codes

Homework Answers

Answer #1

Ans

code:-

%2*(l+b)=200=>l=100-b

max=0;l=0;b=0;%initialise

for i=1:100%length from 1 to 100

j=100-i;%width from 1 to 100

if(i*j>max)%find max area and l,b

max=i*j;

l=i;b=j;

end

end

disp(l);disp(b);%print l,b

length =50, width = 50

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
paul has 400 yards of fencing to enclose a rectangular area. find the dimensions of the...
paul has 400 yards of fencing to enclose a rectangular area. find the dimensions of the rectangle that maximize that enclosed area. what is the maximum area?
Suppose that a rectangular garden shall be fenced off and then divided by a fence into...
Suppose that a rectangular garden shall be fenced off and then divided by a fence into two sections, as pictured below. There is only 60 feet of fencing for the project. Find the dimensions l and w of the garden which will maximize the area of the entire rectangular garden. Be sure to check that these dimensions maximize the area.
1. You are looking to spruce up your garden by making a rectangular enclosure using a...
1. You are looking to spruce up your garden by making a rectangular enclosure using a wall as one side and 160 meters of fencing for the other three sides. You want to find the dimensions of the rectangle so that you are maximizing the enclosed area. (a) Draw and label a picture representing the problem (b) Write the objective function and the constraint. (You do not need to label which equation is which.) (c) Write the area equation in...
You are looking to spruce up your garden by making a rectangular enclosure using a wall...
You are looking to spruce up your garden by making a rectangular enclosure using a wall as one side and 120 meters of fencing for the other three sides. You want to find the dimensions of the rectangle so that you are maximizing the enclosed area. (a) Draw and label a picture representing the problem. (b) Write the objective function and the constraint. (You do not need to label which equation is which.) (c) Write the area equation in terms...
(Optimization Problem) You're building a fence in a rectangular area for a garden outside of your...
(Optimization Problem) You're building a fence in a rectangular area for a garden outside of your house. One side of the garden is up against the wall of your house and doesn't need fencing. You have 100 feet of fencing material. What are the dimensions of the largest area you can enclose? Show all work.
A homeowner wants to create an enclosed rectangular patio area behind their home. They have 168...
A homeowner wants to create an enclosed rectangular patio area behind their home. They have 168 feet of fencing to use, and the side touching the home does not need fence. What should the dimensions of the patio be to enclose the largest area possible?
(Optimization Problem) You need to fence in a rectangular area for a garden outside of your...
(Optimization Problem) You need to fence in a rectangular area for a garden outside of your house. One side of the garden is against the wall and does not need a fence. You have 144 feet of fencing material. What are the dimensions of the largest area you can enclose? Draw and label the problem, identify the objective equation, list the constraints, and show all work.
Optimization problem: You need to fence in a rectangular area for a garden outside of your...
Optimization problem: You need to fence in a rectangular area for a garden outside of your house. One side of the garden is against the wall and does not need a fence. You have 114 feet of fencing material. What are the dimensions of the largest area you can enclose? Draw and label the problem, identify the objective equation, list the constraints, and show all work.
Your sister wants to construct a rectangular garden with three separate areas for the two of...
Your sister wants to construct a rectangular garden with three separate areas for the two of you and your brother. She has 400 ft of fencing for the outer boundary and the separating fences. She asks you to calculate the dimensions in order to have the maximum enclosed total area. (a) Find the total enclosed area, A(x), as a function of the width, x, and determine the x-interval over which it is to be maximized. (b) Find the critical point...
A farmer has 420 feet of fencing to enclose 2 adjacent rectangular pig pens sharing a...
A farmer has 420 feet of fencing to enclose 2 adjacent rectangular pig pens sharing a common side. What dimensions should be used for each pig pen so that the enclosed area will be a maximum? The two adjacent pens have the same dimensions. Find the absolute maximum value of f(x)= x4−2x