Wk01 PROG8240 LecNotes
Wk01 PROG8240 LecNotes
Structured Programming
Today’s Highlights
• An introduction to Computing and Visual Basic
• Visual Studio Integrated Development
Environment (IDE)
Structured Programming 2
Computer Organization
• Hardware – the physical components of the
computer
• Input units:
• keyboard, touch screen, mouse, etc.
• Output units:
• monitor, printer, speaker, etc.
• Memory units:
• RAM, ROM, etc.
• Central processing unit (CPU):
• multi-core processors, such as dual-core, quad-core, etc.
• Storage units:
• hard drive, flash drive, cloud drive, etc.
Structured Programming 3
1
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 4
Computer Programming
• Programs (or software) can be written in many
different languages:
• Machine Language:
• (1) directly understood by computer; (2) consists of 0’s and 1’s; (3)
hard for humans to understand.
• Assembly Language:
• (1) use English-like abbreviations to represent basic operations; (2)
low-level language; (3) assembler is needed to convert assembly
language programs to machine language.
• High-Level Languages:
• (1) easily understood by humans; (2) consists of instructions such as
Click, If, and Do; (3) compiler is needed to convert high-level
language programs to machine language.
Structured Programming 5
2
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 7
3
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 8
Structured Programming 9
4
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 10
Structured Programming 11
5
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 13
6
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 14
Structured Programming 15
7
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 16
Structured Programming 17
8
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 18
Structured Programming 19
9
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 20
Structured Programming 21
10
PROG8240 Lecture notes – week #01
Structured Programming
Structured Programming 22
Structured Programming 23
11