Computer Science, asked by answerpls26, 5 months ago

Write algorithm and create flowchart for calculating area and perimeter of a rectangle step by step​

Answers

Answered by sridharreddyboyini
9

Explanation:

Hope it helps you

please mark me as a brainliest

Attachments:
Answered by tripathiakshita48
0

Algorithm:

1. Start

2. Input length of rectangle

3. Input width of rectangle

4. Calculate the area of rectangle by multiplying length and width

5. Calculate the perimeter of rectangle by adding twice of length and twice of width

6. Output the area and perimeter of rectangle

7. Stop

Flowchart:
+

---------------+

|

Start

|

+

---------------+        

|

       V

+

---------------+

|

Input length  

|

+

---------------+      

|

       V

+

---------------+

|

Input width  

|

+

---------------+        

|

       V

+

---------------+

|

Calculate area

|

+

---------------+        

|

       V

+

---------------+

|

Calculate perimeter

|

+

---------------+        

|

       V

+

---------------+

|

  Output      

|

|

 area

&

perimeter

|

+

---------------+      

|

       V

+

---------------+

|

    Stop      

|

+

---------------+

In the flowchart, rectangular boxes represent processes or calculations, diamonds represent decision points, and the parallelogram represents input or output.

The algorithm and flowchart provide a step-by-step guide for calculating the area and perimeter of a rectangle.

for more such questions on flowcharts
https://brainly.in/question/47444682
#SPJ3

Similar questions