1.ICP - Introduction.docx
1.ICP - Introduction.docx
1
Computer Programming Concepts
Algorithm
Source code
Compiler
Data type
2
● This is the classification of pieces of information in a
program.
● The amount of different data types varies between
languages. Typically, there are data types for integers
(whole numbers), floating-point numbers (numbers with a
decimal part), and single characters. To distinguish
between different data types, a computer uses special
internal codes.
Variable
Constant
Conditional
3
test a number input by the user and if it is too high print
the message "The number entered is too high" and the
program exits.
Array
Loop
● A segment of code that executes repeatedly based on a
certain condition.
● Loops are used to perform tasks repeatedly a certain
amount of times. For example, if you needed to print the
numbers 1 to 10. You can use a loop for this task instead
of manually printing all the numbers.
Function
4
Class
5
References
Landofcode.com. 2022. Computer programming concepts.
[online] Available at:
<http://www.landofcode.com/programming-intro/computer-progra
mming-concepts.php> [Accessed 7 July 2022].