FlowChart Example 1
FlowChart Example 1
A = L x W
◦ Input: Length, Width
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