Rishab owns a rectangular plot of land . Due to certain financial problems , he wishes to sell some parts of his plot. Rishab finds out that square shaped plots sell better than rectangular ones . With this in mind, he decides to divide his plot into minimum possible square plots so that he can get maximum profit . All the square plots have the same dimension.
Given the dimensions of his plot , Write a Program to calculate the minimum number of square plots
Answers
Answered by
0
A farmer wants to divide his plot of land into 4 equal parts. He then will fence it in with 750 feet of fencing. Find a function that models the total area of the four pens.
Solution=
You can't do this problem exactly as it is stated. That is because there is no guarantee as to the shape of the plot of land.
Proceeding on the assumption that your problem should have read: "A farmer wants to divide his rectangularplot of land into 4 equal parts..."
Draw a rectangle. Construct a line segment with endpoints at the midpoints of the long sides of the rectangle. Construct a line segment with endpoints at the midpoints of the short sides of the rectangle. In sum, you will have 6 line segments that each measure one-half of the length of your rectangle and an additional 6 line segments that each measure one-half of the width of the rectangle. Therefore the total measure of the the line segments is , and we are given that this total measure must be 750 feet, so:

which is to say

which is to say

Since the area of the original rectangle is given by , then your Area (as a function of the width of the rectangle) would be:

Of course, all bets are off if the original plot was in the shape of a parallelogram, trapezoid, or some other odd-ball quadrilateral, or an ellipse, or...?
The area of a square field so divided and fenced would be exactly:
 square feet.
Which, by the way, is the maximum possible area for any rectangular shaped field.
The area of a circular field so divided and fenced would be exactly:

Which is approximately
 square feet
and any other regular polygon (except an equilateral triangle) would have an area somewhere between those limits.
John

My calculator said it, I believe it, that settles it
Solution=
You can't do this problem exactly as it is stated. That is because there is no guarantee as to the shape of the plot of land.
Proceeding on the assumption that your problem should have read: "A farmer wants to divide his rectangularplot of land into 4 equal parts..."
Draw a rectangle. Construct a line segment with endpoints at the midpoints of the long sides of the rectangle. Construct a line segment with endpoints at the midpoints of the short sides of the rectangle. In sum, you will have 6 line segments that each measure one-half of the length of your rectangle and an additional 6 line segments that each measure one-half of the width of the rectangle. Therefore the total measure of the the line segments is , and we are given that this total measure must be 750 feet, so:

which is to say

which is to say

Since the area of the original rectangle is given by , then your Area (as a function of the width of the rectangle) would be:

Of course, all bets are off if the original plot was in the shape of a parallelogram, trapezoid, or some other odd-ball quadrilateral, or an ellipse, or...?
The area of a square field so divided and fenced would be exactly:
 square feet.
Which, by the way, is the maximum possible area for any rectangular shaped field.
The area of a circular field so divided and fenced would be exactly:

Which is approximately
 square feet
and any other regular polygon (except an equilateral triangle) would have an area somewhere between those limits.
John

My calculator said it, I believe it, that settles it
Answered by
0
Answer:
Typical Input: 2 10 15 4 6
SampleOutput:\s6\s6
Explanation:
Input
T T, the number of test cases, appears on the input's first line. T T lines then come next.
Each test case starts with a single line that contains the two integers N N and M M, which represent the length and width of the land, respectively.
Output
Print on a new line for each test scenario the smallest number of square plots with an equal area that divide the farmland precisely.
Constraints
Twenty one one twenty one
1 \le M \le 10000
1≤ M≤ 10000
1 \le N \le 10000
1≤ N≤ 10000
Typical Input: 2 10 15 4 6
SampleOutput:\s6\s6
FINAL ANSWER - Typical Input: 2 10 15 4 6
SampleOutput:\s6\s6
#SPJ2
Similar questions
English,
8 months ago
Social Sciences,
1 year ago
History,
1 year ago
Math,
1 year ago
Math,
1 year ago