Intro To Programming Concepts
Intro To Programming Concepts
PROGRAMMING
CONCEPTS
What is a Computer?
Components of a Computer
WEEK
Hardware Concepts
1-2
Digital Data Representation
Bits and Bytes
Digital Electronics
Software Concepts
Software Basics
The Evolution of Programming Languages
an electronic device capable of performing complex
computations in a short time
Hardware
Analog: any continuous signal
Concepts
Digital Data
Representation
If the box contains 0, the value is turned
“off”
If the box contains 1, the value of that
box is turned “on” and will be added to
the value of the number
Digital Data
Representation
How then can a computer represent words
and letters using bits?
Bits can also be used to represent
character data synonymous to using
Morse code
Digital Data
In this case, computers makes use of 0
Representation and 1 as a replacement to dashes and dots
Example: ME has a corresponding binary
value
ASCII (American Standard Code for
Information Interchange)
requires only seven bits for each
character
EBCDIC (Extended Binary Coded
Decimal Interchange Code)
Digital Data an alternative 8-bit code used by older
Representation IBM mainframe computers
UNICODE
uses 8, 16, or 32 bits providing codes for
65,000 characters (represent the
alphabets of multiple languages) and
becoming popular
Extended ASCII Code
makes use of a series of 0’s and 1’s to represent
256 characters
Digital Data
Representation
BIT
an abbreviation of binary digit
other abbreviation for bit is the
lowercase “b”
Bits and
Bytes
BYTE
a collection of bits (8 to be exact)
usually abbreviated as an uppercase “B”
PREFIX ABBREVIATION VALUE
Kilo K 210
Bits and
Mega M 220
Bytes Giga G 230
Tera T 240
How are bits stored and transferred from one
point to another?
Processor
or CPU
Digital Input
Computer
Output
Devices Devices
Electronics
Memory
Input devices are machines that generate
input for the computer, such as keyboard and
mouse
Support module
Software an auxiliary set of instructions used in conjunction
Basics with the main software program
Data module
contains data (not supplied by the user) necessary
for the execution of certain task
Software
Basics
Data vs. Software
Software
(Microsoft Word)
Basics
application software
System Software
Hardware (Operating System,
(Computer
, Printer) Device Drivers)
First Generation: Machine Languages – use a binary code
(strings of 1s and 0s) that can be understood by the computer
and executed directly without any need for translation
Early to mid-1950s
Assembly language
Evolution of
Programming Slight improvement over machine
Languages language, but still difficult to learn and use
Needs to be converted to machine
language by an assembler
Machine-dependent
Together with 1GL, are considered as
low-level languages
Third Generation: High-Level Languages – use data
structures and control structures that are abstractions of
programming concepts