Introduction To Computers: Unit-I
Introduction To Computers: Unit-I
Introduction to Computers
Computer means to calculate something but computer has wider applications
such as for composing programs, for calculations, animation, graphics, health
check, railway reservation, hospitals, and educations Scientific applications as
well as to do many other tasks.
A computer is an electronic device which accept the input data from the user
through the keyboard and sends to CPU for processing the results
Ex: if we want to with draw some money from the ATM first we will give some
information by typing account number, amount to be drawn. This given
information to the ATM is called as an INPUT data
The information can be processed in the ATM is called PROCESSING after done
the process it will displays the results through the monitor called OUTPUT
COMPUTER SYSTEM:
A computer is an electronic device which will take data or instructions from the
user through the keyboard that data received by the CPU And performs the
results. A computer system consisting the following units that are
1 input device
2 central processing unit (CPU)
3 memory unit
4 output device
INPUT DEVICE:Input device is a device which will accept the data from the
keyboard for generate the
Results the input device connected with CPU
EX: KEYBOARD, MOUSE, JOYSTICKS
ARITHEMETIC AND LOGICAL UNIT (ALU):
The CPU is the brain of the computer it is made up of different parts. Control unit,
instruction decoder .As well as arithmetic logical unit (ALU) and internal
processor storage units. The CPU actually performs the processing the data as
per
instructions by calculating and selecting an
action through
comparisation .it can performs the arithmetical calculations such as addition,
substraction,multiplication as well as division. And the logical operations are
AND, OR, NOT on the data .A computer can analyze, evaluate, and the match
data with sets of known data that are included in the program
A computer can copy of data from one register to another in the CPU a register is
a small memory space .That is capable of storing a specified number of binary
digits as data .the control and timing control directs the all other parts of the
EX:
HARD
DISC
FLUFFY
DISC,
PENDRIVE,
VCD,
DVD
extra
OUTPUT DEVICE
output device is a device which will useful to display the results through
the
monitor
Ex: monitor
CREATING AND RUNNING THE PROGRAMS:
Once an effective algorithm has been designed we can implement it in the form
of a computer program, an algorithm will help us to design the program simply
creating the computer program consisting the following steps These are..
Definition the of the problem, Design, Coding, Testing, Documentation,
Implementation, and Maintenance
Define the problem of ,this must be include the needed output, the
available input
In second step is to design the problem solution
The third step in developing a program is to Code the Program. it must
contains the languages of syntax (or) rules
The fourth step involved the Test the Program to make sure that it will run
correctly.
Fifth step involves the Documentation of the Program, it consisting the
user instructions and program logics extra
The last step is developing The Program Is Implementation, once the
program is complete it needs to be installed on a computer and made to
work properly
Even after the completion of a program it Need To Be Maintained and
evaluated for possible changes
COMPUTING ENVIRONMENTS
Most programming languages are provides the editors for performs the different
operations such editors offers a complete environment for writing, developing,
modifying, deploying ,testing and debugging the programs such software is
referred to as an integrated development environment or (IDE)
An ide is typically dedicated with a specific programming language in
most
IDEs are allows the menu commands to executes the programs. The process of
editing, compiling, linking and executing is essentially the same for developing
programs in any environment.
Simple programming environments are specially designed for C and C++
programming on windows
Another popular IDE is Microsoft visual basic programming and visual studio
2005/visual C++ 2005 expresses edition support
UNIX and LINEX are the most common editors
COMPUTER LANGUAGES
A language is n nothing but a system of communication one to another person s
like Telugu, Hindi, English extra...
Similarly the computer also has languages to provide the communication
between the user and computer hardware.
The human languages having grammar rules .the languages are used for
express our ideas thoughts and emotions
Similarly in order to express our ideas to the computer, the computer languages
are used these are also having the grammar rules called instructions
, an
instructions is a statement that perform a particular task. A programming
language is a language that is made up of a collection of instructions write in
order
That is called is programming language. The computer languages are mainly
divided in two types they are used for the developing the communication
between the user and the computer hardware these are
As follows
Low level language
high level language
The low level languages are also divided into two types
1. Machine language
2. Assembly language
The computer languages are simple and smaller than the other languages
LOW level language:
The language which is directly understand by the machine that type of
languages are called as lower level languages
Machine language:
The fundamental method of representing information to the computer is
an electric pulse ,that which is having two states namely called as low
state and high state ,these two states can be associated with binary
numbers 0 or 1
symbolic code this symbolic code is called as mnemonic code instead of ones
and zeros, this is an easy to understand and for the read
The assembly languages instructions are also contains two formats they are as
follows
I.
Symbolic opcode
II.
Symbolic address
For examples symbolic opcodes are as follows
ADDAdditions
SUBSubtractions
LOADLoad
STOREStore
There is a one to one correspondence with in assembly language and
machine language, the assembly language does not understand directly
by the machine so that the computer cannot executed directly. In order
to understand the assembly language a translator is required to convert
the assembly language into machine language so that the translator is an
assembler
Advantages of assembly language:
There is no need of remembering of all binary OPCODES and address of
memory location
Program correction and modification is very easy
Less time is required for writing a program than the machine language
It is an very easier than the machine language
LIMITATIONS OF THE ASSEMBLY LANGUAGE
The execution time of assembly language is very high than the machine
language
T he assembly language is an machine dependent, that is designed for
specific computer programming has to be re-written for a different
machine
HIGH LEVEL LANGUAGE
The low-level languages are machine dependent these are very difficult to
understand for us. But the high level languages are machine independent
languages these are very easy to understand the human beings. The
languages which is directly does not understand by the machine, then that
type of languages are called as HIGH LEVEL LANGUAGES
These are very easy for composing of programs, modification and
maintaining .the programs are portable from one to another
Like assembly language the programs are written in high level language
the conversion from high-level language to machine language the
translators are required they are called as an compilers and interpreters
These are the software programs used for convert the high level language
to low level language
A compiler can converts the entire program at time where as the
interpreter converts the each instruction of a program at a time
consequence as that interpreter is smaller than the compiler
ADVANTAGES OF HIGH LEVEL LANGUAGES
these
activities
are
as
follows
STEP 1 : START
STEP 2 : INPUT A,B,C;
STEP 3 : INPUT ENTER A,B
STEP 4 :C=A+B
5. STEP 5: PRINT A
6. STEP 6: STOP
STEP 5 : PRINT C
STEP 6 : STOP
Moving of an arrows
ADVANTAGES OF FLOWCHARTS
Communication: flowcharts are a better way for communicating the logic of a
system to all concerned