4. | Basic Constant — value never change at any time during the course of a
element | program
Variables — value may change at any time during the course of a program
Data type
® Integer: whole number (18, 79, 101, -6, -20)
* Double: Numbers with decimal or contains fractional part (14.1, - 3.5,
200.10)
* String: value that contains a sequence of characters (Ahmad,
sekolah)
* Boolean: consist either True or False value
= Currency: For currency use (RM, USD, Yen)
Operators — symbol or notation that tells a computer to perform certain
actions or operation
* Mathematical operators: plus (+), minus (-), multiply (*), divide (/)
* Relation operators: equal to (=), greater than (>), less than (<),
greater than or equal to (>=), less than or equal to (<=)
® Logical operators: AND, OR, NOT
5. | Flow Chart | Terminator — shows beginning or end of a program
Flow line and arrowhead — shows connect symbols and indicate the
sequences of operation.
Input / output — shows either an input operation or output operation
Process — shows process to be carried out
Decision — shows a decision to be made
25