Professional Documents
Culture Documents
Lesson 5
WHAT IS A PROBLEM?
• A question
• An unexpected situation
• A doubtful situation
• Needs to be solved
PROCESS OF PROBLEM SOLVING
Start
Get the length of the rectangle
INPUT
Get the width of the rectangle
PROCESS
Area = length x width
Display the area of the rectangle OUTPUT
End
Problem – Make Fruit Salad
Start
Get fruits
Wash the fruits
Cut the fruits into small pieces
Put pieces into a bowl
Add sugar, salt and lime juice
Mix it
Serve the fruit salad
End
WHAT IS A FLOWCHART?
rectangle
INPUT LENGTH OF THE
RECTANGLE
DISPLAY AREA
END
Find the largest number START
INPUT NUMBER 1
INPUT NUMBER 2
Is number 1 YES
greater than
DISPLAY NUMBER 1
number 2
NO
DISPLAY NUMBER 2
END
DRAW A FLOW CHART TO EXPLAIN A SIMPLE
SEQUENTIAL PROCESSES
IS TODAY
MY NO
BIRTHDAY
?
YES
YES MORE
PRESENTS
?
NO
END
• Enuri loves shopping. She saw two beautiful frocks on
www.chenaradodge.lk website. She ordered both frocks but, one frock
was displayed as “Available” where as the other was displayed as “out of
stock”.
• Ordering a pizza online