Develop a program in Java using BlueJ to accept the length and breadth using parameters of a rectangle and find its Area and Perimeter.
Answers
Answered by
1
This is a Java Program to Create a Simple Class to Find out the Area and Perimeter of Rectangle.
Formula:
Perimeter of rectangle = 2 * (length + breadth)
Area of rectangle = length * breadth
Enter the length and breadth of the rectangle as input. Now we use the given formula to calculate the area and perimeter of rectangle.
Here is the source code of the Java Program to Create a Simple Class to Find out the Area and Perimeter of Rectangle. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.
Similar questions
Math,
2 months ago
Geography,
2 months ago
Social Sciences,
2 months ago
Math,
4 months ago
India Languages,
4 months ago
English,
10 months ago
Science,
10 months ago
Physics,
10 months ago