Question
solve un matlab not hand writing
3) [5 pts] Create an anonymous runeo 100 when &-0.1 4) [6 pts] A landscape architect wishes to enclose a rectangular garden o
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1 n 1000 k 1:sqrt(n) k(rem(n,k)==0) 2 3 4 mn-1000000 l=0,b=0 for i=d х-i 7 у-1000/x price=30*x + 10* (x+2*y) if price<mn mn-p

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

Add a comment
Know the answer?
Add Answer to:
solve un matlab not hand writing 3) [5 pts] Create an anonymous runeo 100 when &-0.1...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (1 pt) A landscape architect wished to enclose a rectangular garden on one side by a brick wall c...

    (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...

    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...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT