Fundamentals of Computing
Fundamentals of Computing
COMPUTING
Jeffin Joseph
Asst Professor
BIMS
INTRODUCTION TO COMPUTERS
CHARACTERISTICS OF A COMPUTER
Speed
Speed is the most important characteristics of a
computer. Computers have more speed to perform
jobs instantaneously. It can perform in a few
seconds , the amount of work that a human being
can do in an entire year.
A powerful computer is capable of adding two
twenty digit numbers in 300 nano seconds
CHARACTERISTICS OF A COMPUTER
Accuracy
The accuracy of the computer is consistently high.
The computers are perfect accurate and precise. It
never makes any mistake.
Automatic
The computer works automatically, once programs
are stored and data given to it. Constant
supervision is not required .Individual instructions
are transferred one after other to the control.
CHARACTERISTICS OF A COMPUTER
Diligence
The computer can go working continuously and
does not suffer from human traits of tiredness
and lack of concentration.
If three million calculations have to be
performed ,it will perform the third millionth
instruction with exactly the same accuracy and
speed as the first instruction.
CHARACTERISTICS OF A COMPUTER
Versatility
The computer can be put to various jobs and has
applications in various fields.
Computers have key role in fields such as space
exploration, weather forecasting,research,office
automation,teaching,railways,medicine,industry,
and banking.
CHARACTERISTICS OF A COMPUTER
Storage
The computers processes limitless quantities of
data and information. With more and more
auxiliary storage devices, which is capable of
storing huge amount of data ,the storage capacity
of computers is unlimited.
CLASSIFICATION OF COMPUTERS
BASED ON SIZE AND CAPACITY
Micro computer
Minicomputers
Mainframes
Super computers
CLASSIFICATION OF COMPUTERS
BASED ON SIZE AND CAPACITY
Microcomputers
Smaller computers
CPU is usually a single integrated circuit
Minicomputer
Minicomputers are scaled up version of micro
computers with moderate speed and storage capacity
CLASSIFICATION OF COMPUTERS
BASED ON SIZE AND CAPACITY
Mainframe
Mainframe computers are implemented using two
or more central processing units.
It is capable of supporting hundreds of users
simultaneously.
Supercomputer
A supercomputer is an extremely fast computer
that can perform hundreds of millions of
information's per second.
CLASSIFICATION OF COMPUTERS
BASED ON UTILITY
CLASSIFICATION OF COMPUTERS
BASED ON HARDWARE DESIGN
Analog
Digital
Hybrid
CLASSIFICATION OF COMPUTERS
BASED ON MODE OF USE
Palmtop PCS
Laptop PCs
Personal computer
Work station
Mainframe system
Clients and Servers
ARCHITECTURE
The basic architecture of a computer system consist
of .
ARCHITECTURE
INPUT UNIT
Computers must need the data and instructions
in order to solve any problem.
Therefore, we need to put the data and
instructions into the computers .
The input unit consists of one or more input
devices.
The keyboard of the computer is one of the type
of input devices used in the computer system.
CONTROL UNIT
The control unit instruct the computer how to
carry out a program instruction.
It controls and co-ordinates the entire computer
system.
The input unit does not know when to receive
data and where to put the data in the storage
unit after receiving it.
The control unit gives the necessary instructions
to the input device
CONTROL UNIT
The control unit instructs the input unit where to
store the data after receiving it from the user.
In the same way, it controls the flow of data and
instructions from the storage unit to ALU.
It also controls the flow of the results from ALU
to the storage unit.
The control unit also controls what should be
sent to the output unit.
MEMORY UNIT
SECONDARY MEMORY
The secondary memory is used like an archive. It
may store several programs,documents,databases
etc.
The program that you want to run on the
computer is first transferred to the primary
memory before it can run.
Similarly, after running the program, if u need to
save the results ,you will transfer them to
secondary memory.
The secondary memory is slower and cheaper
than the primary memory.
It is non volatile.
OUTPUT UNIT
Devices used to get the response or result of a
process from the computer is called output.
The output unit of a computer provides the
information and results of a computation to the
outside world.
Printer display screen are commonly used output
devices.
COMPONENTS OF A COMPUTER
Hardware
CPU
Peripherals
Software
System
Software
Application software
HARDWARE
CPU COMPONENTS
Motherboard
All the electronic components in a PC are
mounted on a Printed Circuit Board(PCB),called
the motherboard.
Processor
The microprocessor or the central processing
Unit is the computers most important
component.
HARDWARE
CPU COMPONENTS
RAM chips
When a computer is switched on and is running a
program(RAM ) is used to hold the program and its
data. But when the computer is switched off, anything
in RAM is lost.
RAM
ROM
ROM
It is non-volatile
memory
The contents are
permanent
Cost effective
Available in high
storage capacity
Processing speed is
low
RAM
It is a volatile
memory
The contents are
temporary
Cost is very high
Available in smaller
capacity
Processing speed is
high
SECONDARY MEMORY
Floppy disk
Magnetic tapes
Hard Disk
CD-ROM
CACHE MEMORY
.
CPU
CACHE
MEMORY
Primary
memory
Secondary
memory
CACHE MEMORY
Advantages
Keyboard
Monitors
Mouse
Scanner
Printer
COMPUTER SOFTWARE
Introduction
The
COMPUTER SOFTWARE
Software
It is basically the set of instructions grouped
into programs that make the computer to
function in the desired way. It is a collection of
programs to perform a particular task
Program
A program is the set of instructions written in
any high level language that can be understood
by the computer
COMPUTER SOFTWARE
Software
System
Software
Application
Software
Operating
Systems
Word
Processors
Compilers
Spreadsheets
Assemblers
Image
processors
BASICS OF PROGRAMMING
LANGUAGES
BASICS OF PROGRAMMING
LANGUAGES
Language
Machine
Assembly
High level
MACHINE LANGUAGES
Disadvantages
Machine Dependent
Programming is very difficulty
MACHINE LANGUAGE
In a machine language the procedure of adding 3
and 9 is performed as follows
Equivalent binary for 3
10 = 00112
Advantages
Easy to understand
Easy to modify and isolate error
Disadvantages
Machine dependent language
Requires translator
Difficult to write
MVI A
( move a value to accumulator)
ADD B
( add B with contents of accumulator)
STA C
(Store accumulator contents to C)
HLT
(Halt the program)
Disadvantages
Needs translator
Requires high execution time
DIFFERENCE B/W
MACHINE,ASSEMBLY,HIGHLEVEL LANGUAGE
Feature
Machine
Assembly
High level
Form
Mnemonic
codes
Normal English
M/c
Dependency
Independent
Dependent
Independent
Translator
Not needed
Needs
Needs
Less
High
Nature
Difficult
Difficult
Easy
Memory Space
Less
Less
More
C LANGUAGE OVERVIEW
The
WHY C++?
C++ is a statically typed, compiled, generalpurpose, case-sensitive, free-form programming
language that supports procedural, objectoriented, and generic programming
It is the object oriented implementation of C
C++ was developed by Bjarne Stroustrup starting
in 1979 at Bell Labs in Murray Hill, New Jersey,
as an enhancement to the C language and
originally named C with Classes but later it was
renamed C++ in 1983.
ADVANTAGES OF JAVA
Platform
WHAT IS AN IDE ?
SCRIPTING LANGUAGES
Ahigh-level
programming languagethat
isinterpretedby another program atruntime rather
thancompiled by the computer's processor as other
programming languages (such asCandC++) are.
Scripting languages, which can be embedded
withinHTML, commonly are used to add
functionality to a Web page, such as different menu
styles or graphic displays or to
servedynamicadvertisements.
These types of languages are client-side scripting
languages, affecting the data that the end user sees
in abrowserwindow.
Javascript,ASP.NET,PHP
LANGUAGE TRANSLATORS
Compiler: It is a program which is used to
convert the high level language programs into
machine language.
Assembler: It is a program which is used to
convert the assembly level language programs
into machine language
Interpreter: It is a program, it takes one
statement of a high level language program,
translates it into machine language instruction
and so on.
Interpreter
An Interpreter is used to
faster.
slower
compiler.
interpreters