write an algorithm and draw a flowchart to calculate area of square and rectangle?
Answers
Answer:
here's your answer for square, for rectangle change one length to breath that is length*breath
Explanation:
hope it helps
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 - 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 - 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 --> --> Print area of square --> Read length and breadth --> --> Print area of rectangle --> END.