Unit 1 (Module1)
Unit 1 (Module1)
COMPUTER OVERVIEW
The literal meaning of computer is a device that can calculate. However,
modern computers can do a lot more than calculate.
Computer is an electronic device that receives input, stores or processes
the input as per user instructions and provides output in desired format.
Input-Process-Output Model
Computer input is called data and the output obtained after processing
it, based on user’s instructions is called information. Raw facts and
figures which can be processed using arithmetic and logical operations
to obtain information are called data.
Data entered into computer is sent to RAM, from where it is then sent
to ALU, where rest of data processing takes place. All types of
processing, such as comparisons, decision-making and processing of
non-numeric information takes place here and once again data is moved
to RAM.
Control Unit
Memory Unit
What is a Computer?
Functions of Computers
1 History of Computers
7 Output Devices
Output devices help to display output to user
8 Computer Memory
Computer memory refers to storage area where
data is stored. It is of two types Primary
Memory & Secondary Memory.
10 Programming Languages
The languages that are used to write a program
or set of instructions are called "Programming
languages". Programming languages are broadly
categorized into three types - Machine level
language, Assembly level language, High-level
language.
11 Representation of Data/Information
Computer does not understand human language.
Any data, viz., letters, symbols, pictures, audio,
videos, etc., fed to computer should be converted
to machine language first. Computers represent
that data into different forms.
13 Applications of IECT
IECT stands for Information Electronics and
Communication Technology
From the data structure point of view, following are some important
categories of algorithms −
Characteristics of an Algorithm
Types of Flowchart
o Horizontal Flowchart
o Panoramic Flowchart
o Vertical Flowchart
o Architectural Flowchart
chart:
Flowchart symbols:
Advantages of Flowchart in C:
Disadvantages of Flowchart in C:
Examples of flowchart:
Example 1:
Introduction:
The pseudo code in C consists of words and phrases that make pseudo
code looks similar to the program but not a program. Pseudo codes are
written with respect to a programming language, but programming
language syntax or grammar is not strictly followed.
Fixed syntax of keywords that provide for all structured constructs, data
declarations and modularity characteristics.
Case Construct:
Different programmers use their own style of writing pseudo code and
hence communication problems occur due to lack of standardization.
Note: Keep multiplying the fractional part with 2 until decimal part 0.00
is obtained.
(0.25)10 = (0.01)2
4. Octal to Decimal
(12.2)8
1 x 81 + 2 x 80 +2 x 8-1 = 8+2+0.25 = 10.25
(12.2)8 = (10.25)10
5. Hexadecimal to Binary
To convert from Hexadecimal to Binary, write the 4-bit binary
equivalent of hexadecimal.
(3A)16 = (00111010)2
6. Binary to Hexadecimal
To convert from Binary to Hexadecimal, start grouping the bits in
groups of 4 from the right-end and write the equivalent hexadecimal for
the 4-bit binary. Add extra 0’s on the left to adjust the groups.
1111011011
0011 1101 1011
(001111011011 )2 = (3DB)16