Académique Documents
Professionnel Documents
Culture Documents
INTRODUCTION TO
COMPUTERS AND
PROGRAMMING
Chapter 01
Why Program?
Computer programmable machine designed to
follow instructions
Program instructions in computer memory to
make it do something
Programmer person who writes instructions
(programs) to make computer perform a task
SO, without programmers, no programs; without
programs, a computer cannot do anything
1-3
4. Input Devices
5. Output Devices
1-5
Figure 1-1
1-6
1-7
CPU Organization
Figure 1-2
1-8
Main Memory
1-9
Main Memory
Above figure, the number 149 is stored in the byte with the address 16, and the
number 72 is stored at address 23.
1-10
Secondary Storage
1-11
Input Devices
1-12
Output Devices
1-13
Categories of software:
Operating
1-14
15
Programs and
Programming Languages
1-16
1-17
Machine Language
1-18
Machine Language
1-19
Programs and
Programming Languages
Types of languages:
1-20
C++
BASIC
Ruby
Java
FORTRAN
Visual Basic
COBOL
C#
JavaScript
Python
1-21
Object Code
Preprocessor
Linker
Modified
Source Code
Executable Code
Compiler
1-23
Integrated Development
Environments (IDEs)
1-24
Integrated Development
Environments (IDEs)
1-25
26
Words
Programmer-Defined Identifiers
Operators
Punctuation
Syntax
1-27
Program 1-1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Key Words
1-29
Key Words
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1-30
Programmer-Defined Identifiers
1-31
Programmer-Defined
Identifiers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1-32
Operators
1-33
Operators
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1-34
Punctuation
1-35
Punctuation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1-36
Syntax
1-37
Variables
1-38
Variable Definitions
1-39
Variable Definitions
1-40
Variable Definitions
1-41
42
1-43
44
1-45