Question 1048872: If a farmer had 40 meters of fencing and he plans to use it to make a rectangle cow pen.what is all the possible lengths and breadths he could choose - keeping to a whole number of metres.
Which possibility gives the farmer the greatest area?
Answer by Fombitz(32388) (Show Source):
You can put this solution on YOUR website! So you know that the perimeter of the rectangle has to equal the amount of fencing,


and you know that the area of a rectangle is,

So set up a procedure to create a list of values, choose , solve for , calculate the area, .
You know that and have to be non-zero and whole numbers so,




, ,
Now increment .




, ,
Incremenet again,




, ,
Continue this way until you cannot (eventually will signal it's time to stop).
|
|
|