Overview of Computers and Programming
Overview of Computers and Programming
IN PYTHON AND C
6
COMPUTERS
Item Quantity Price
Cookies 3 $0.39
5
COMPUTER COMPONENTS
6
SMART PHONES
Hardware Software
7
COMPUTER COMPONENTS
Programs
Software
Application Software developed to assist
a computer user in accomplishing Operating system
specific tasks.
Example: Word, Excel, Chrome.
Input and Output Unit
Hardware
Memory
Storage
8
COMPUTER COMPONENTS…
Software
interaction between machine and user.
Example, Windows, Linux, ios...etc Operating system
Hardware
Memory
9
COMPUTER HARDWARE
10
THE ANATOMY OF A COMPUTER
The Computer Hardware consists of the physical elements in
a computer system.
The central processing unit (CPU) performs program
control and data processing
Storage devices include
Primary memory: Consists of memory chips (electronic circuits that
can store data as long as it is provided electric power).
Fast and more expensive.
e.g., RAM and ROM
Secondary storage: Provides slower, less expensive storage that is
persistent (without electric power)
e.g., Hard disks, flash drives, CD/DVD drives.
Computers store both data and programs
Both are located in secondary storage and are loaded into primary storage
when programs are executed.
Input/output devices allow the user to interact with the
computer
Mouse, keyboard, printer, screen
11
THE CENTRAL PROCESSING UNIT
(CPU)
Software
• For example, Random Access Memory (RAM)
Operating system
Hardware
Memory
Storage
COMPUTER LANGUAGES
14
COMPUTER LANGUAGES
Machine Language – A collection of binary numbers
Not standardized. There is a different machine
language for every processor family.
Example of adding two numbers:
16
FLOW OF INFORMATION DURING
PROGRAM EXECUTION
17