CLS
PRINT "PROGRAM: Calculate both perimeter/area of rectangle"
INPUT " Length"; length
INPUT "Breadth"; breadth
PRINT "Perimeter: "; 2 * (length + breadth)
PRINT " Area: "; length * breadth
END
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
2. Write a program using switch statement that reads a character representing a geometrical figure, then asks the user to enter the required data (ex. Radius for a circle, length and height for a rectangle, etc. ...) . The program should then print the area and circumference.Figures are: circle(c), square(s), rectangle(r), triangle (t).
By using that one thing.
Write a program that calculates the area of a triangle in QBASIC
{Area s the area of cube} {Length is the length of one side of the cube} program AreaofCube; var Area,Length:real; begin write('Enter the length of cube: '); readln(Length); Area:=6*(Length*Length); writeln('The area of cube is ', Area, ' cm^2.'); end.
#include<stdio.h> void main() { float length, breadth, area, perimeter; printf("Enter the length & breadth of a Rectangle\n(length breadth): "); scanf("%f %f",&length,&breadth); area=length*breadth; perimeter=2*(length+breadth); printf(" Area of the Rectangle=%0.3f\n",area); printf("Perimeter of the Rectangle=%0.3f\n",perimeter); printf("(Press ENTER to exit.)"); getch(); printf("\n"); }
Write two simultaneous equations and solve them. One for the perimeter, one for the area.
This question has no unique answer. A (3 x 2) rectangle has a perimeter = 10, its area = 6 A (4 x 1) rectangle also has a perimeter = 10, but its area = 4 A (4.5 x 0.5) rectangle also has a perimeter = 10, but its area = 2.25. The greatest possible area for a rectangle with perimeter=10 occurs if the rectangle is a square, with all sides = 2.5. Then the area = 6.25. You can keep the same perimeter = 10 and make the area anything you want between zero and 6.25, by picking different lengths and widths, just as long as (length+width)=5.
the area of a rectangleis 100 square inches. The perimeter of the rectangle is 40 inches. A second rectangle has the same area but a different perimeter. Is the secind rectangle a square? Explain why or why not.
No. For example, a 4x1 rectangle will have an area of 4 and a perimeter of 10. A 2x2 rectangle will have the same area of 4, but a perimeter of 8.
The perimeter of the rectangle is the sum of its 4 sides.
The length of a rectangle is twice its width. If the perimeter of the rectangle is , find its area.
find the perimeter and area of a rectangle that is 15cm long and 5cm wide
Let's take a look at this problem.Rectangle Perimeter = 2(l + w)Rectangle Perimeter =? 2(2l + 2w)Rectangle Perimeter =? (2)(2)(l + w)2(Rectangle Perimeter) = 2[2(l + w)]Thus, we can say that the perimeter of a rectangle is doubled when its dimensions are doubled.Rectangle Area = lwRectangle Area =? (2l)(2w)Rectangle Area =? 4lw4(Rectangle Area) = 4lwThus, we can say that the area of a rectangle is quadruplicated when its dimensions are doubled.
the length of a rectangle is 5 more then the width. Find the perimeter and the area of the rectangle
Yes, the perimeter or area of a rectangle can be an irrational number. Thanks
156 It is impossible to calculate the area of a rectangle from its perimeter if no other dimension is known. The area of a rectangle is the product of its length and width, and the perimeter is twice the sum of its length and width.