Topic 2 - Mac2024
Topic 2 - Mac2024
BASIC ELEMENTS OF
COMPUTER PROGRAM
(PART 1)
CSC126 – FUNDAMENTALS OF ALGORITHMS & COMPUTER PROBLEM
SOLVING
LEARNING OBJECTIVES
At the end of the lesson, the students should be
able to:
Understand basic program components
Define & use the identifier, variable & statement
Understand the standard data type
Use the input & output statement
Use the arithmetic operator
Understand the assignment statement
Write simple programs
Identifiers can
C++ is case
be of any
sensitive
length
PREPARED BY: NYCJ@KKPIM, UiTM CAWANGAN PERLIS KAMPUS ARAU 20
PREPARED BY: NYCJ@KKPIM, UiTM CAWANGAN PERLIS KAMPUS ARAU 21
SECTION 2:
DATA TYPES
Data type can be defined as a set of values together with a set
of operations
Example: Example:
-5 8+7