Grade 11 - Competency 10: Writes programs to solve problems
සිංහල / English
🎨 Flowchart Builder (10.3 - Flow charts)
Symbol Palette
Start/End
Input/Output
Process
Decision
Flowchart Canvas
Drag symbols here. Move them to desired positions.
Pre-built Templates:
🔄 Pseudo Code ↔ Flowchart Converter (10.3)
📊 One-Dimensional Array Simulator (10.9)
Array Declaration Examples:
Pascal: var marks: array[1..10] of integer;
Pseudocode: DECLARE marks[10] AS INTEGER
Features:
• Contiguous memory
• Index starts at 1
• Random access
🔍 Data Type Validator (10.4)
I
Integer
Whole numbers
F
Float
Decimal numbers
S
String
Text data
B
Boolean
True/False
C
Character
Single character
Variable Name
Data Type
Value
Valid
Action
🌀 Control Structures Visualizer (10.2, 10.6, 10.7, 10.8)
Pseudo Code:
Flowchart:
Execution Steps:
Variable Values:
🔢 Operator Precedence Evaluator (10.5)
Operator Types:
Arithmetic Operators:
+ (Addition)
- (Subtraction)
* (Multiplication)
/ (Real Division)
DIV (Integer Division)
MOD (Modulus)
Relational Operators:
= (Equal to)
!= or <> (Not equal)
< (Less than)
> (Greater than)
<= (Less or equal)
>= (Greater or equal)
Logical Operators:
AND (Logical AND)
OR (Logical OR)
NOT (Logical NOT)
Operator Precedence (Highest to Lowest):
() Parentheses
NOT (Logical NOT)
*, /, DIV, MOD, AND
+, -, OR
=, !=, <, >, <=, >=
⚖️ Selection Structure Simulator (10.6)
Pseudo Code:
IF marks >= 75 THEN
grade = "A"
ELSE IF marks >= 65 THEN
grade = "B"
ELSE IF marks >= 55 THEN
grade = "C"
ELSE IF marks >= 40 THEN
grade = "S"
ELSE
grade = "F"
ENDIF
Selection Structure Types:
IF-THEN-ENDIF IF condition THEN statements ENDIF
IF-THEN-ELSE-ENDIF IF condition THEN statements1 ELSE statements2 ENDIF
🔄 Iteration Simulator (10.7)
Pseudo Code:
sum = 0
i = 1
WHILE i <= n DO
sum = sum + i
i = i + 1
ENDWHILE
OUTPUT sum
Loop Execution:
Iteration Types:
WHILE Loop WHILE condition DO statements ENDWHILE
• Condition checked at start
• May execute 0 times
FOR Loop FOR i = 1 TO n DO statements ENDFOR
• Fixed number of iterations
• Counter variable
REPEAT-UNTIL REPEAT statements UNTIL condition
• Condition checked at end
• Executes at least once
💾 Variable and Constant Simulator (10.4)
Variable Declaration:
Rules: Start with letter, no spaces, meaningful names
Constants: Values cannot be changed after declaration