Computer Science, asked by razia6781, 4 months ago

write an algorithm and draw a flowchart to calculate area of square and rectangle?​

Answers

Answered by adhritchopdekar
8

Answer:

here's your answer for square, for rectangle change one length to breath that is length*breath

Explanation:

hope it helps

Attachments:
Answered by anurimasingh22
4

Answer:

The algorithm and flowchart for calculating square and rectangular area is based upon the steps involved in applying formula for such calculation.

Explanation:

The algorithm for the said question is as follows:

Step 1 : Procedure to calculate the area of a square  and rectangle- Start.

Step 2 : Secondly, input the sides of square in centimeter - Input.

Step 3 : Input the formula for display for the calculation of area of square Area of Square = side length^{2} - Formula display.

Step 4 : Assign the values of the side length into the formula - Assign.

Step 5 : Print the area calculated upon successful assignment of value of side length into formula - Print.

Step 6 : Now, input the length and breadth of rectangle in centimeter - Input.

Step 7 : Input the formula for display for the calculation of area of rectangle Area of Rectangle = length \times breadth - Formula display.

Step 8 : Assign the values of the length and breadth into the formula - Assign.

Step 9 : Print the area calculated upon successful assignment of value of side length into formula - Print.

Step 10 : Procedure to calculate area of square and rectangle - End.

Flow Chart :

START --> Read side of square --> Area of Square = side length^{2} --> Print area of square --> Read length and breadth --> Area of Rectangle = length \times breadth --> Print area of rectangle --> END.

Similar questions