Familiarization with computer hardware and programming environment
Familiarization with computer hardware and programming environment
A Computer is device that can automatically performs a set of instructions. The computer
takes as input these instructions as a single unit, uses them to manipulate the data, and outputs
the results in user-specified ways. The processing is fast, accurate and consistent, and is
generally achieved without significant human intervention.
What is Software?
Software is a collection of code that drives a computer to perform a related group of tasks. It
comprises one or more programs, supported by libraries and configuration files that
programs needed to access.
What is Hardware?
The hardware devices are the physical components of a computer system such as electronic,
magnetic and mechanical devices, which we can touch and feel.
What is Data?
It is a collection of raw facts that may be organized or unorganized having implicit meaning
which can be recorded and processed into information.
Architecture of a Computer
Input Unit
Input unit of a computer accepts the data and instructions required to solve a problem from
the outside world or user. The input unit may consist of one or more input devices such as
keyboard and mouse. Input unit converts the accepted data into binary form and sends it for
processing.
1. Control Unit.
2. Arithmetic and Logic Unit.
3. Registers
Control Unit (CU)
It controls and directs the transfer of data and program instructions between
various units.
It maintains order and directs the operations of entire system.
It performs four basic operations, they are:
Fetches an Instruction.
Decodes the instruction.
Registers
They are high speed temporary storage units of CPU used to store instructions and
intermediate data or results temporarily during processing.
Memory Unit
Memory unit is the only storage area in a computer. Memory unit stores data, instructions,
intermediate results and final output generated. Secondary storage devices are additional
memory used to store data permanently ex: pen drives, Floppy disk etc.
1. Primary Memory
2. Secondary Memory
Primary Memory
1. Random Access Memory (RAM): Used to speed up the file accessing between
Secondary memory and Processor and it is volatile in nature.
2. Read Only Memory (ROM): used to hold BIOS.
Secondary Memory
The secondary memory is also called as permanent memory. This is huge in size. This has
magnetic, Optical and semiconductor memory devices.
Output Unit:
The output unit displays the results, which are stored in memory. It converts the
results which are in binary form into user understandable form and then displays the result to
the user or outer world.
A motherboard is the central printed circuit board (PCB) of the computer, that holds many
of the crucial components of the system, such as cpu, memory, expansion slots etc. while
providing connectors for other peripherals, The motherboard is sometimes alternatively
known as the main board or system board
Motherboard Chipset
Motherboard chipset controls all the data that flows through channels of the motherboard. Its
primary function is to direct the data to correct areas of the motherboard.
Components of a MOTHERBOARD
Bus
I-O ports
Expansion slots
Floppy controller
processor socket or slot
Cache memory
BIOS Chip
CMOS
Bus
The various components of a computer are connected with the help of physical
connections or group of wires called buses.
A BUS is a Circuit that provides a communication path between two or more devices
of a digital Computer system.
Internal bus: The bus that connects the internal components like CPU, System
memory and all other components on the mother board is called internal bus. It also
referred to as system bus.
External Bus: The bus that connects the different external devices, peripherals,
expansion slots, I-O ports and drive connections to the rest of the computer is called
External Bus.
1. Serial Port
2. Parallel Port
Serial port
The serial port is an Asynchronous port which transmits data serially one bit at a time. It is
also known as RS-232-C port or COM port. It is used to attach mouse, modem and other
small serial devices to the computer.
Parallel Port
Most printers use a special connector called a parallel port. Parallel port carries 8 bits of data
at a time on parallel paths, hence it is faster way for computer to communicate with input and
output device. Parallel ports use a 25-pin female DB connector. Parallel port is also known as
printer port.
These connectors are costlier as they provide faster access at very high speed. They
need dedicated adapters to function. These are typically 25 & 50 pin connectors. High
performance hard disks and scanners use SCSI interface.
USB is a Plug and Play interface between computer and add-on devices. USB
provides hot plug and unplug feature. It supports a data speed of 12 Mbps, supporting 127
physical devices.
Expansion slot is the area in the motherboard into which expansion boars are inserted,
connecting them to pc’s bus. Expansion slots are used for adding functionality to the
computer.
It is the standard architecture of the Expansion bus. It is a 16-bit slot. ISA cards are Non plug
and play cards.
PCI slot: Intel introduced the Peripheral component interconnect bus protocol.
The PCI bus is used to connect I/O devices such as NIC or RAID controllers to the main
logic of the computer. PCI is a 32 bit slot and can perform twice the amount of data transfer
for a device than ISA. PCI bus has replaced the ISA bus.
AGP slot
Modern motherboards have a single connector that looks like a PCI slot, but is slightly
shorter and usually brown and also probably have a video card inserted into this slot. This is
an Advanced Graphics Port (AGP) slot.
RAM Slots
Random-Access Memory (RAM) stores programs and data currently being used by the CPU.
RAM is measured in units called bytes.
Cache memory increases the performance of the system by storing frequently used program
code or data. It is faster than RAM and hence system can store information accessed from
RAM in Cache Memory. There are two types of cache L1 (level1) cache: Integrated within
the processor and L2 (level2) cache: Located outside the processor.
PRINTERS: Printer is an hard copy output device that produces text and graphics on a
physical medium like paper.
Programming Environment
Algorithm
Step by step procedure to solve the given Problem written in natural language.
Example:
Step 1: Start
Step 2: Print the simple message
Step 3: Stop
Flow chart
Example:
Start
Stop
Compilation of Program
example:
Excution of program:
./outfile
Example
./prog