Day1 C Programming
Day1 C Programming
Basics of Computer
Hardware and
Software
Date: 22/04/2023
ഈശ വിശ്വവിദ്യാലയം
ആനയറ, തിരുവനന്തപുരം
Contents
1. Introduction to Computers 3
2. Generations of Computers 4
3. Functional units of computer 5
4. Input & Output Devices 8
5. Processor 9
6. Memory 11
7. Software 15
8. Keyboard Shortcuts 16
1
Introduction to Computers
The term computer is derived from the word compute. A computer is an electronic device that
takes data and instructions as an input from the user, processes data, and provides useful
information known as output. This cycle of operation of a computer is known as the
Input-Process-Output cycle shown in figure.
The electronic device is known as hardware and the set of instructions is known as
software.
Definition
“ Computer is fast and accurate electronic system that is designed to accept and store
input data, process them and produce output results using the instructions of a stored
program.”
2
Generations of Computers
● The different computing devices
developed over the years can be
categorized into several
generations.
3
Functional units of computer
○ Input Unit
○ Output Unit
○ Storage Unit
○ Arithmetic Logic Unit
○ Control Unit
2. Input Unit
○ Accept the data and instructions
from the outside environment.
○ Convert it into machine language.
○ Supply the converted data to the
computer system.
3. Output Unit
○ It connects the internal system of
a computer to the external
environment.
○ It provides the results of any computation, or instructions to the
4
outside world.
4. Storage Unit
○ This unit holds the data and instructions.
○ It also stores the intermediate results before these are sent to the
output devices.
○ It also stores the data for later use. The storage unit of a computer
system can be divided into two categories:
i. Primary Storage:
● This memory is used to store the data which is being
currently executed.
● It is used for temporary storage of data. The data is
lost when the computer is switched off.
● RAM is used as primary storage memory.
5
Drive) and SSD (Solid-State Drive).
6
Input & Output Devices
7
Processor
8
The basic elements of a processor:
1. The arithmetic logic unit (ALU), which carries out arithmetic and logic
operations on the operands in instructions.
2. The floating point unit (FPU), also known as a math coprocessor or
numeric co-processor, a specialized co-processor that manipulates
numbers more quickly than the basic microprocessor circuitry can.
3. Registers, which hold instructions and other data. Registers supply
operands to the ALU and store the results of operations.
4. L1 and L2 cache memory. Their inclusion in the CPU saves time
compared to having to get data from random access memory (RAM).
9
Memory
● Memory is the most essential element of a computing system because without it
computers can't perform simple tasks. Computer memory is of two basic type -
Primary memory (RAM and ROM) and Secondary memory (hard drive, CD, etc.).
10
● Read Only Memory (ROM)
○ primary-non-volatile memory.
○ Stores crucial information
essential to operate the system,
like the program essential to
boot the computer.
○ It is not volatile.
○ Always retains its data.
○ Used in embedded systems or
where the programming needs
no change.
○ Used in calculators and peripheral devices.
○ Types of ROM
■ PROM (Programmable
read-only memory) - It
can be programmed by
user. Once programmed,
the data and instructions
in it cannot be changed.
11
■ EEPROM (Electrically erasable
programmable read only
memory) - The data can be
erased by applying electric field,
no need of ultra violet light. We
can erase only portions of the
chip.
Hard Disk
■ The hard disk is a device that can store data and have the data
survivor power-off and resets of the computer.
■ Data stored on a hard disk can be read at a later point, no matter
how long time the computer has been powered off - provided that
the computer and hard disk
is still working at the time it is
again powered on.
■ The hard disk is where you
normally store your
documents and files.
■ It is also on the hard disk that
the computer's operating
system is stored, and where
the programs you have
installed on the computer
are stored.
■ The hard disk is also where your own programs are stored.
■ When the computer is told to execute a program, it loads the
program from the hard disk into RAM and executes it from there.
■ Programs can also read from and write to the hard disk.
■ For instance, the program Microsoft Word can read and Word
documents from and to the hard disk
12
Solid State Drive (SSD)
● A solid-state drive (SSD) is a new
generation of storage device used
in computers.
● SSDs store data using flash-based
memory, which is much faster than
the traditional hard disks they've
come to replace.
● SSDs also have no moving parts,
and upgrading to one is a great way
to speed up your computer and
make it more resilient. Learn how
SSDs work and how to keep them optimized with
performance-boosting software.
13
Software
“ Software is a collection of instructions that enable the user to interact with a computer , its
hardware or perform tasks ”
14
Keyboard Shortcuts
15
16