0% found this document useful (0 votes)
2 views

FlowChart Example 1

Uploaded by

merryfil.adolfo
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

FlowChart Example 1

Uploaded by

merryfil.adolfo
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Problem: Compute the area of rectangle.

A = L x W
◦ Input: Length, Width

◦ Assign Variable: Length – L, Width – W


START
Algorithm:

1. Get the value of L and W


2. Multiply L and W
3. Assign the result to variable A.
4. Display A L, W

GET L, W

A=LxW

Display A

END
Problem: Draw a flowchart that will display the area and perimeter of a rectangle.
P = 2L + 2W.
Input: L, W
Process: A = L x W
P = 2L + 2W
START
Output: A, P

Algorithm:
L, W
1. Start
A, P
2. Enter L and W
3. A=LxW
4. P = 2L + 2W
5. Print A, P
6. End Enter L, W

A=LxW

P = 2L + 2W

PRINT A, P

STOP
Create a flowchart that will display your age five years from now.
Input: current_age
Process: future_age = current_age + 5 START
Output: future_age

current_age
Input: age
future_age
Process: age = age + 5
Ouput: age

Enter
current_age
START

future_age = current_age + 5

age

Print
future_age

Enter age

STOP

age = age + 5

Print age

STOP

You might also like