Programming Fundamentals 1st
Programming Fundamentals 1st
Fundamentals
Lecture 1
What is computer ?
It is a machine that takes in raw data and
performs some calculations on it and
gives us the formed output in the desired
format.
Information:
“processed data on a computer is
called information”
• Data
– Pieces of facts
– Computer organize and present
information
• Users
– People operating the computer
– Computer working for the people
– Users are most important part of the
computers
– Tell the computer what to do
HARDWARE
• Physical Components of the
Computer.
• TANGIBLE (can be touched)
SOFTWARE
• Step-by-step instructions to perform
the task.
• Also called a program
• INTANGIBLE (cannot be touched)
• Programs and software
interchangeable terms
HARDWARE :
Major components of a Computer
• INPUT DEVICES
• OUTPUT DEVICES
• CPU
• MEMORY
• STORAGE DEVICES
HARDWARE:
INPUT DEVICES
These devices allow the user to
enter the data into the computer.
These devices are;
• Keyboard
• Mouse
• Scanner
• Pointer
HARDWARE:
OUTPUT DEVICES
Consist of devices that translate
information processed by the
computer into human
understandable format.
These devices are:
• Printer
• Monitor
• Speaker
HARDWARE:
I/O DEVICES
Some devices are both input as
well as output devices.
Can perform I/O simultaneously.
• Touchpad Screens
CPU; Central Processing Unit
• Brain of the computer.
• Two parts are:
– ALU
– CU
CONTROL UNIT
• Directs and coordinates flow of data
through the CPU and to and from other
devices
• Traffic cop
• CPU’s Instruction set is built into the
Control unit called Commands that a
CPU can execute
ALU
Arithmetic Logic Unit
MEMORY
Two categories of Memory
• Volatile Memory
Loses its contents when the
computer's power is turned off
• Non-volatile Memory
Does not lose its contents when the
computer’s power is turned off
MEMORY
Stores Data or programs
RAM: Random Access Memory
(Volatile)
• Stores current Data and programs
• More RAM results in a faster system
ROM: Read Only Memory (non-volatile)
•Permanent storage of
programs/instructions
• Holds the computer boot directions
TYPES OF SOFTWARE
SYSTEM SOFTWARE
Enables the application to interact with
the computer
and manages the computer internal
resources.
Examples:
– Operating System
– Device Drivers
APPLICATION SOFTWARE
It performs useful work on General-
purpose task.
Examples:
– MS-Word
– PowerPoint
– Google(search engine)
Minicomputers
• Class of multi-user computers that
lies in between
mainframe computers (multi user) and
microcomputers
or personal computers (single user)
• Mid range computer, such as the
higher-end SPARC, POWER and
Itanium-based systems from Sun
Microsystems, IBM and Hewlett-
Packard.
Microcomputers
– Workstation
– Desktop computers
– Notebook computers
– Tablet computers
– Handheld computers
– Smart phones
Micro-controller
• Embedded computers are small in
size, specialized microprocessors
• Designed for small or dedicated
applications
• Installed in "smart" appliances from
automobiles to washing machines
Types of RAM
Types of ROM
• ROM (Read-Only Memory)
• Flash EEPROM
Cache Memory
• The cache is a small amount of high-
speed memory,usually with a memory
cycle time comparable to the time
required by the CPU to fetch one
instruction.
• The most frequently used
instructions are kept in cache memory
so that CPU can look there first. Saved
time which was wasted by CPU in
swapping instructions in and out of
main memory.
• It can be located on Microprocessor
chip or on a separate chip next to CPU.
Flash Memory
• Non-volatile Electrically Erasable
Programmable Read Only Memory
• Examples: memory cards, USB flash
drives, solid-state drives