Matlab code:
n = 1000
k = 1:sqrt(n)
d = k(rem(n,k)==0)
mn=1000000
l=0,b=0
for i=d
x=i
y=1000/x
price=30*x + 10*(x+2*y)
if price<mn
mn=price
l=x
b=y
end
fprintf("Dimension is %d * %d",l,b)
end
Explanation:
This code check all the rectangle by calculating all the divisors
if x is the divisor the other divisor will be 1000/x
so if x is of 30 dollars x+y+y will be of 10 dollars
so price is calculated for each rectangle and minimum price is recorded among these
1000=1*1000
1000=2*500
1000=4*250
.
.
.
.
1000=25*30 is the all forms
and 1800 is the minimum price
So If you got any help
Please UPVOTE this answer
solve un matlab not hand writing 3) [5 pts] Create an anonymous runeo 100 when &-0.1...
(1 pt) A landscape architect wished to enclose a rectangular garden on one side by a brick wall costing $30/ft and on the other three sides by a metal fence costing $20/ft. If the area of the garden is 128 square feet, find the dimensions of the garden that minimize the cost Length of side with bricks Length of adjacent side y = (1 pt) A landscape architect wished to enclose a rectangular garden on one side by a brick...
A landscape architect wished to enclose a rectangular garden on one side by a brick wall costing $60/ft and on the other three sides by a metal fence costing $50/ft. If the area of the garden is 8 square feet, find the dimensions of the garden that minimize the cost. Length of side with bricks x = Length of adjacent side y =
Show work please Optimization problems 1. (5 points) Find two nonnegative numbers whose sum is 25 and so that the product of one number and the square of the other number is a maximum. 2. (5 points) Build a rectangular pen with two parallel partitions using 300 feet of fencing. What dimensions will maximize the total area of the pen? (5 points) An open rectangular box with square base is to be made from 48 ft.2 of material. What dimensions...