SlideShare a Scribd company logo
1 of 55
CHAPTER – 02
NUMBER SYSTEM
Unit 1
Computer Systems and Organisation
(CSO)
XI
Computer Science (083)
Board : CBSE
Unit I
Computer Systems and Organisation (CSO)
(10 Theory + 02 Practical)
DCSc & Engg, PGDCA,ADCA,MCA.MSc(IT),Mtech(IT),MPhil (Comp. Sci)
Department of Computer Science, Sainik School Amaravathinagar
Cell No: 9431453730
Praveen M Jigajinni
Prepared by
Courtesy CBSE
INTRODUCTION
INTRODUCTION
"A set of values used to represent different
quantities is known as “Number System". For
example, a number system can be used to
represent the number of students in a class or
number of viewers watching a certain TV
program etc. The digital computer represents
all kinds of data and information in binary
numbers. It includes audio, graphics, video, text
and numbers. The total number of digits used in
a number system is called its base or radix. The
base is written after the number as subscript
such as 51210.
TYPES OF NUMBER SYSTEMS
TYPES OF NUMBER SYSTEMS
1. BINARY NUMBER SYSTEM
2. OCTAL NUMBER SYSTEM
3. DECIMAL NUMBER SYSTEM
4. HEXA DECIMAL NUMBER SYSTEM
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
The binary number system is a
numbering system that represents numeric
values using two unique digits (0 and 1). Most
computing devices use binary numbering to
represent electronic circuit voltage state, (i.e.,
on/off switch), which considers 0 voltage
input as off and 1 input as on.
BINARY NUMBER SYSTEM ADVANTAGES
BINARY NUMBER SYSTEM ADVANTAGES
1. Binary is extremely simple to
implement. Any system that has an "on"
and "off" or "high" and "low" state can be
used to encode and/or manipulate data.
2. Binary is the lowest "base" possible (base
2) and hence any higher counting system
can be easily encoded (e.g. decimal, octal,
hexadecimal, etc.)
BINARY NUMBER SYSTEM ADVANTAGES
3. Binary would be the most effective way to
attempt to communicate with any type of
alien civilization. Just as "math" is a type of
universal language (any alien civilization
would understand a sequence of prime
numbers, for example) binary is a universal
alphabet.
BINARY NUMBER SYSTEM ADVANTAGES
4. Binary data is extremely robust in
transmission because any noise tends to be
neither fully "on" or "off" and is easy to
reject.
5. Binary would be the most effective way to
attempt to communicate with any type of alien
civilization. Just as "math" is a type of universal
language (any alien civilization would
understand a sequence of prime numbers, for
example) binary is a universal alphabet.
APPLICATIONS OF BINARY NUMBER SYSTEM
APPLICATIONS OF BINARY NUMBER SYSTEM
1. The most common application for the binary
number system can be found in computer
technology.
2. Digital encoding is the process of taking data
and representing it with discreet bits of
information. These discreet bits consist of
the 0s and 1s of the binary system.
For example, the images you see on your
computer screen have been encoded with a
binary line for each pixel.
APPLICATIONS OF BINARY NUMBER SYSTEM
If a screen is using a 16-bit code, then each
pixel has been told what color to display
based on which bits are 0s and which bits
are 1s. As a result, 2^16 represents 65,536
different colors!
3. We also find the binary number system in a
branch of mathematics known as
Boolean Algebra.
BINARY REPRESENTATION OF INTEGER
BINARY REPRESENTATION OF INTEGER
1.Sign and magnitude representation is the
conventional form of number system. It is
represented as signs ( + or - ).
2.One,s complement represents positive
numbers by their binary equivalent called
true value.
3.Two complement representation represents
their binary equivalent numbers and
negative numbers by their second
compliment form.
BINARY REPRESENTATION OF INTEGER
 Real numbers are represented in storage
medium by their exponents and mantissa.
For example numbers 32.17 can be written
as 0.3217*102, 0.3217is its mantissa and 2
is its exponent.
MORE ON BINARY NUMBER SYSTEM
MORE ON BINARY NUMBER SYSTEM
Binary is the language of
computers. Everything you type, input,
output, send, retrieve, draw, paint, or
place blame on when something
doesn't work is, in the end, converted to
the computer's native language- binary.
A single binary 1 or a single binary
0 is called a bit, which is short for
"binary digit".
MORE ON BINARY NUMBER SYSTEM
Four bit binary number is called nibble
1 0 1 0
Eight bits together makes most used
computer term byte A single byte can
represent the decimal values 0 to 255 (256
distinct values)
1 0 1 0 1 1 0 1
MORE ON BINARY NUMBER SYSTEM
Place a couple of bytes together to
represent a single value and you have a 16-bit
word (2 bytes = 16- bits). A 16-bit word can
represent the values 0 to 65535 (65536 distinct
values).
1 0 1 0 1 1 0 1 1 1 0 0 0 1 1 1
32-bit words are 4 bytes in length. They can
represent a value from 0 to 4,294,967,295
(4,294,967,296 distinct values)
BINARY TO DECIMAL
BINARY TO DECIMAL
Example binary number: 10001010
Binary representation of decimal 138.
Now, look at those numbers above the
boxes with the red 1s and 0s. Those are decimal
numbers representing powers of 2.
BINARY TO DECIMAL
These are the values that are above the
boxes. Now the actual binary number itself
consists of 1s and 0s in the blue boxes which
somehow magically represents the decimal
number 138. How do we get 138 from
10001010? In the binary number when you see
a 1, multiply that 1 times the value that is
directly over it. Where you see a 0 in the box,
just ignore it.
Black board Teaching - Various (From & to)
Binary number conversion techniques.
OCTAL NUMBER SYSTEM
OCTAL NUMBER SYSTEM
Octal was widely used some 50 years
ago by Digital Equipment Corp. (DEC) and
other companies that had computers
with a 12-bit word (e.g. the PDP-8) or
other multiples of six, such as 18 and 36
(e.g. UNIVAC 1108). I used both the PDP-
8 and UNIVAC 1108 in grad school.
Characters in both machines typically
used six bits, not 8.
OCTAL NUMBER SYSTEM
According to Wikipedia, octals aren't
as common as they used to be. As others
have already mentioned, in the past,
systems used to have a 12/24/36-bit
word, which is more easily represented in
octal than hexadecimal, but currently, the
x86 and i64 architectures use a 16/32/64
bit word, which is more easily
represented in hexadecimal and
downright ugly in octal.
OCTAL NUMBER SYSTEM APPLICATIONS
OCTAL NUMBER SYSTEM APPLICATIONS
1. Octal is used less these days, but C’s
standard IO functions allow specifying
characters that way.
2. Representation of IP addresses (rare,
sometimes used by spammers to obscure
addresses). Microsoft accepts octal IP
numbers for Ping and FTP.
3. Representation of UTF8 numbers (any
start byte is 3nn and any continuation
byte 2nn).
OCTAL NUMBER SYSTEM APPLICATIONS
4. "Real" real-world use: the Yuki people
and in the native Mexican Pamean languages
use octal counting because they count the
spaces between their fingers
5. Historically in the 1950's, one of the
oldest debuggers, UT-3 for the TX-0
computer at MIT (an 18-bit system), could
only be operated by using commands
written in octal notation.
6. TAR files store some information in
octal representation.
7. When fields are naturally divided
into three or six bits, octal
representation comes in handy .
8. Integers, but also fractions on the
Honeywell and other legacy systems
were represented as octal.
OCTAL NUMBER SYSTEM APPLICATIONS
9. A whole lot of legacy (CDC machines,
DEC PDP-8 etc), because they used multiples
of 3 bits, like 6-bit or 12-bit word sizes.
10. In 1971, octal numbers were proposed
to replace the decimal system.
11. And finally, most trivially: you use it
almost everyday when you write down the
number 0 in some programming language
that supports octals.
OCTAL NUMBER SYSTEM APPLICATIONS
12. Codes squawked by Mode 3A
transponders in airplanes.
13. Key codes in the ncurses library
(ncurses (new curses) is a programming
library providing an application
programming interface(API) that allows
the programmer to write text-based
user interfaces in a terminal-
independent manner. It is a toolkit for
developing …
OCTAL NUMBER SYSTEM APPLICATIONS
"GUI-like" application software that runs
under a terminal emulator. It also
optimizes screen changes, in order to
reduce the latency experienced when
using remote shells.)
OCTAL NUMBER SYSTEM APPLICATIONS
HEXA DECIMAL NUMBER SYSTEM
HEXA DECIMAL NUMBER SYSTEM
Ah, hexadecimal. If you've ever
worked with colors in web page design,
you've proably seen something like ' or
something to that effect. Somehow, that 6
digit hexadecimal number is equal to a
lavender or light purple color. What on
earth does 'A09CF3' mean? Before we
explain that, let's look at what
hexadecimal (hex) is.
HEXA DECIMAL NUMBER SYSTEM
Our decimal system, as mentioned in
my Binary Tutorial, is a base-10 system,
meaning we can count to any number in
the universe using only 10 symbols or
digits, 0 thru 9. For the computer, a 10-
based system probably isn't the most
efficient system, so the computer uses
binary (in reality, it uses microscopic
switches which are either on or off, but we
represent them using the digits '1' and '0').
HEXA DECIMAL NUMBER SYSTEM
Unfortunately, binary isn't very efficient
for humans, so to sort of find a happy
middle ground, programmers came up
with hexadecimal. Hexadecimal is a base-
16 number format (hex=6, decimal=10).
This means that instead of having only the
digits from '0' to '9' to work with like our
familiar decimal, or '1' and '0' like binary,
we have the digits '0' to '15'.
HEXA DECIMAL NUMBER SYSTEM
It also means that we are using the powers
of 16, instead of the powers of 2 like in
binary
As soon as you count over 9 in hex, new
digits take over. A=10, B=11, C=12, D=13, E=14
and F=15.
HEXA DECIMAL NUMBER SYSTEM
0x0F In fact, the '0x' in front of a hex
number is more current than the '$'. The
'$' is sort of old school. Whether you use a
'$' or a '0x', it tells you that you're working
with a hex number, not a decimal
HEXA DECIMAL NUMBER SYSTEM APPLICATIONS
HEXA DECIMAL NUMBER SYSTEM APPLICATIONS
1. To define locations in memory. Hexadecimals
can characterise every byte as two hexadecimal
digits only compared to eight digits when using
binary.
2. To define colours on web pages. Each primary
colour – red, green and blue is characterised by
two hexadecimal digits. The format being used
is #RRGGBB. RR stands for red, GG stands for
green and BB stands for blue.
HEXA DECIMAL NUMBER SYSTEM APPLICATIONS
3. To represent Media Access Control (MAC)
addresses. MAC addresses consist of 12-digit
hexadecimal numbers. The format being used is
either MM:MM:MM:SS:SS:SS or MMMM-MMSS-
SSSS. The first 6 digits of the MAC address
represent the ID of the adapter manufacturer
while the last 6 digits represent the serial number
of the adapter.
4. To display error messages. Hexadecimals are
used to define the memory location of the
error. This is useful for programmers in finding
and fixing errors.
ASCII
The American Standard Code for
Information Interchange (ASCII) is a
character-encoding scheme originally based
on the English alphabet. ASCII codes
represent text in computers,
communications equipment, and other
devices that use text. Most modern
character-encoding schemes are based on
ASCII, though they support many more
characters than ASCII does.
ASCII
ASCII Character Set
ISCII
ISCII
In recent past the computer activities
were limited to specific languages and with
the increase in works there was to be
develop a slandered code . In 1991, the
bureau of Indian standard develop common
code called ISCII. this is a 8-bit code capable
of coding 256 characters.
UNICODE
UNICODE
 Unicode provides a unique number for every
character,
 No matter what the platform
 No matter what the program.
 No matter what the language.
INDIAN LANGUAGES ON UNICODE
The standard has incorporated Indian
scripts under group name Asian scripts ,
includes Devnagari , Bengali ,Tamil ,Malayalam.
CLASS TEST
CLASS TEST
1. Write a note on ASCII 05
2. Write a note on Unicode 05
3. Convert the following 10
(i) (1111000)2 = (?) 10
(ii) (234)10 = (?)8
(iii) (564)8 = (?)16
(iv) (AA)16 = (?)10
(v) (555)8 = (?)2
Time: 40 Min Max Marks 20
Thank You

More Related Content

What's hot

Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Lovely Singh
 
1's and 2's complement
1's and 2's complement 1's and 2's complement
1's and 2's complement Shiraz Azeem
 
Number System
Number SystemNumber System
Number Systemitutor
 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statementnarmadhakin
 
pseudo code basics
pseudo code basicspseudo code basics
pseudo code basicsSabik T S
 
binary number system
 binary number system binary number system
binary number systemvishal gupta
 
c++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ programc++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ programAAKASH KUMAR
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number systemNallapati Anindra
 
If else statement in c++
If else statement in c++If else statement in c++
If else statement in c++Bishal Sharma
 
Number system and codes
Number system and codesNumber system and codes
Number system and codesAbhiraj Bohra
 

What's hot (20)

Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
1's and 2's complement
1's and 2's complement 1's and 2's complement
1's and 2's complement
 
Number System
Number SystemNumber System
Number System
 
Tree - Data Structure
Tree - Data StructureTree - Data Structure
Tree - Data Structure
 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statement
 
Division algorithm
Division algorithmDivision algorithm
Division algorithm
 
Number system
Number systemNumber system
Number system
 
pseudo code basics
pseudo code basicspseudo code basics
pseudo code basics
 
binary number system
 binary number system binary number system
binary number system
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
c++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ programc++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ program
 
Data Representation
Data RepresentationData Representation
Data Representation
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
If else statement in c++
If else statement in c++If else statement in c++
If else statement in c++
 
Number System
Number SystemNumber System
Number System
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
Number System
Number SystemNumber System
Number System
 
Codes
CodesCodes
Codes
 
Binary codes
Binary codesBinary codes
Binary codes
 

Similar to Chapter 4 number system

Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...ArtemKovera
 
1.1.1 binary systems By Zak
1.1.1 binary systems By Zak1.1.1 binary systems By Zak
1.1.1 binary systems By ZakTabsheer Hasan
 
Chapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and PChapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and PEstelaJeffery653
 
CST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the BitginningCST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the Bitginningoudesign
 
Binary System by Bray Avila
Binary System by Bray AvilaBinary System by Bray Avila
Binary System by Bray Avilaavilab
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxKaameshwaranKaameshw
 
Introduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptxIntroduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptxBhawaniShankarSahu1
 
Mathematical concepts and their applications: Number system
Mathematical concepts and their applications: Number systemMathematical concepts and their applications: Number system
Mathematical concepts and their applications: Number systemJesstern Rays
 
Computer_Programming_Fundamentals CHAPTER 2.pptx
Computer_Programming_Fundamentals CHAPTER 2.pptxComputer_Programming_Fundamentals CHAPTER 2.pptx
Computer_Programming_Fundamentals CHAPTER 2.pptxBernardVelasco1
 
Application in comprog
Application in comprogApplication in comprog
Application in comprogMARKVILLAPLAZA
 
Data representation in a computer
Data representation in a computerData representation in a computer
Data representation in a computerGirmachew Tilahun
 
ICT - Lecture Notes 4.pdf
ICT - Lecture Notes 4.pdfICT - Lecture Notes 4.pdf
ICT - Lecture Notes 4.pdfHonKencyTress
 

Similar to Chapter 4 number system (20)

Number system of computer
Number system of computerNumber system of computer
Number system of computer
 
Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...
 
1.1.1 binary systems By Zak
1.1.1 binary systems By Zak1.1.1 binary systems By Zak
1.1.1 binary systems By Zak
 
Chapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and PChapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and P
 
CST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the BitginningCST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the Bitginning
 
Binary System by Bray Avila
Binary System by Bray AvilaBinary System by Bray Avila
Binary System by Bray Avila
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
 
Number system
Number system Number system
Number system
 
Number+system (1)
Number+system (1)Number+system (1)
Number+system (1)
 
Introduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptxIntroduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptx
 
Mathematical concepts and their applications: Number system
Mathematical concepts and their applications: Number systemMathematical concepts and their applications: Number system
Mathematical concepts and their applications: Number system
 
Dld lecture notes
Dld lecture notesDld lecture notes
Dld lecture notes
 
Computer_Programming_Fundamentals CHAPTER 2.pptx
Computer_Programming_Fundamentals CHAPTER 2.pptxComputer_Programming_Fundamentals CHAPTER 2.pptx
Computer_Programming_Fundamentals CHAPTER 2.pptx
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Application in comprog
Application in comprogApplication in comprog
Application in comprog
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
Data representation in a computer
Data representation in a computerData representation in a computer
Data representation in a computer
 
ICT - Lecture Notes 4.pdf
ICT - Lecture Notes 4.pdfICT - Lecture Notes 4.pdf
ICT - Lecture Notes 4.pdf
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
 

More from Praveen M Jigajinni

Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithmsPraveen M Jigajinni
 
Chapter 06 constructors and destructors
Chapter 06 constructors and destructorsChapter 06 constructors and destructors
Chapter 06 constructors and destructorsPraveen M Jigajinni
 
Chapter 04 object oriented programming
Chapter 04 object oriented programmingChapter 04 object oriented programming
Chapter 04 object oriented programmingPraveen M Jigajinni
 
Chapter 8 getting started with python
Chapter 8 getting started with pythonChapter 8 getting started with python
Chapter 8 getting started with pythonPraveen M Jigajinni
 
Chapter 7 basics of computational thinking
Chapter 7 basics of computational thinkingChapter 7 basics of computational thinking
Chapter 7 basics of computational thinkingPraveen M Jigajinni
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow chartsPraveen M Jigajinni
 
Chapter 3 cloud computing and intro parrallel computing
Chapter 3 cloud computing and intro parrallel computingChapter 3 cloud computing and intro parrallel computing
Chapter 3 cloud computing and intro parrallel computingPraveen M Jigajinni
 

More from Praveen M Jigajinni (20)

Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
 
Chapter 08 data file handling
Chapter 08 data file handlingChapter 08 data file handling
Chapter 08 data file handling
 
Chapter 07 inheritance
Chapter 07 inheritanceChapter 07 inheritance
Chapter 07 inheritance
 
Chapter 06 constructors and destructors
Chapter 06 constructors and destructorsChapter 06 constructors and destructors
Chapter 06 constructors and destructors
 
Chapter 05 classes and objects
Chapter 05 classes and objectsChapter 05 classes and objects
Chapter 05 classes and objects
 
Chapter 04 object oriented programming
Chapter 04 object oriented programmingChapter 04 object oriented programming
Chapter 04 object oriented programming
 
Chapter 03 python libraries
Chapter 03 python librariesChapter 03 python libraries
Chapter 03 python libraries
 
Chapter 02 functions -class xii
Chapter 02   functions -class xiiChapter 02   functions -class xii
Chapter 02 functions -class xii
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
Chapter 17 Tuples
Chapter 17 TuplesChapter 17 Tuples
Chapter 17 Tuples
 
Chapter 15 Lists
Chapter 15 ListsChapter 15 Lists
Chapter 15 Lists
 
Chapter 14 strings
Chapter 14 stringsChapter 14 strings
Chapter 14 strings
 
Chapter 13 exceptional handling
Chapter 13 exceptional handlingChapter 13 exceptional handling
Chapter 13 exceptional handling
 
Chapter 10 data handling
Chapter 10 data handlingChapter 10 data handling
Chapter 10 data handling
 
Chapter 9 python fundamentals
Chapter 9 python fundamentalsChapter 9 python fundamentals
Chapter 9 python fundamentals
 
Chapter 8 getting started with python
Chapter 8 getting started with pythonChapter 8 getting started with python
Chapter 8 getting started with python
 
Chapter 7 basics of computational thinking
Chapter 7 basics of computational thinkingChapter 7 basics of computational thinking
Chapter 7 basics of computational thinking
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow charts
 
Chapter 5 boolean algebra
Chapter 5 boolean algebraChapter 5 boolean algebra
Chapter 5 boolean algebra
 
Chapter 3 cloud computing and intro parrallel computing
Chapter 3 cloud computing and intro parrallel computingChapter 3 cloud computing and intro parrallel computing
Chapter 3 cloud computing and intro parrallel computing
 

Recently uploaded

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Chapter 4 number system

  • 1. CHAPTER – 02 NUMBER SYSTEM Unit 1 Computer Systems and Organisation (CSO) XI Computer Science (083) Board : CBSE
  • 2. Unit I Computer Systems and Organisation (CSO) (10 Theory + 02 Practical) DCSc & Engg, PGDCA,ADCA,MCA.MSc(IT),Mtech(IT),MPhil (Comp. Sci) Department of Computer Science, Sainik School Amaravathinagar Cell No: 9431453730 Praveen M Jigajinni Prepared by Courtesy CBSE
  • 4. INTRODUCTION "A set of values used to represent different quantities is known as “Number System". For example, a number system can be used to represent the number of students in a class or number of viewers watching a certain TV program etc. The digital computer represents all kinds of data and information in binary numbers. It includes audio, graphics, video, text and numbers. The total number of digits used in a number system is called its base or radix. The base is written after the number as subscript such as 51210.
  • 5. TYPES OF NUMBER SYSTEMS
  • 6. TYPES OF NUMBER SYSTEMS 1. BINARY NUMBER SYSTEM 2. OCTAL NUMBER SYSTEM 3. DECIMAL NUMBER SYSTEM 4. HEXA DECIMAL NUMBER SYSTEM
  • 8. BINARY NUMBER SYSTEM The binary number system is a numbering system that represents numeric values using two unique digits (0 and 1). Most computing devices use binary numbering to represent electronic circuit voltage state, (i.e., on/off switch), which considers 0 voltage input as off and 1 input as on.
  • 9. BINARY NUMBER SYSTEM ADVANTAGES
  • 10. BINARY NUMBER SYSTEM ADVANTAGES 1. Binary is extremely simple to implement. Any system that has an "on" and "off" or "high" and "low" state can be used to encode and/or manipulate data. 2. Binary is the lowest "base" possible (base 2) and hence any higher counting system can be easily encoded (e.g. decimal, octal, hexadecimal, etc.)
  • 11. BINARY NUMBER SYSTEM ADVANTAGES 3. Binary would be the most effective way to attempt to communicate with any type of alien civilization. Just as "math" is a type of universal language (any alien civilization would understand a sequence of prime numbers, for example) binary is a universal alphabet.
  • 12. BINARY NUMBER SYSTEM ADVANTAGES 4. Binary data is extremely robust in transmission because any noise tends to be neither fully "on" or "off" and is easy to reject. 5. Binary would be the most effective way to attempt to communicate with any type of alien civilization. Just as "math" is a type of universal language (any alien civilization would understand a sequence of prime numbers, for example) binary is a universal alphabet.
  • 13. APPLICATIONS OF BINARY NUMBER SYSTEM
  • 14. APPLICATIONS OF BINARY NUMBER SYSTEM 1. The most common application for the binary number system can be found in computer technology. 2. Digital encoding is the process of taking data and representing it with discreet bits of information. These discreet bits consist of the 0s and 1s of the binary system. For example, the images you see on your computer screen have been encoded with a binary line for each pixel.
  • 15. APPLICATIONS OF BINARY NUMBER SYSTEM If a screen is using a 16-bit code, then each pixel has been told what color to display based on which bits are 0s and which bits are 1s. As a result, 2^16 represents 65,536 different colors! 3. We also find the binary number system in a branch of mathematics known as Boolean Algebra.
  • 17. BINARY REPRESENTATION OF INTEGER 1.Sign and magnitude representation is the conventional form of number system. It is represented as signs ( + or - ). 2.One,s complement represents positive numbers by their binary equivalent called true value. 3.Two complement representation represents their binary equivalent numbers and negative numbers by their second compliment form.
  • 18. BINARY REPRESENTATION OF INTEGER  Real numbers are represented in storage medium by their exponents and mantissa. For example numbers 32.17 can be written as 0.3217*102, 0.3217is its mantissa and 2 is its exponent.
  • 19. MORE ON BINARY NUMBER SYSTEM
  • 20. MORE ON BINARY NUMBER SYSTEM Binary is the language of computers. Everything you type, input, output, send, retrieve, draw, paint, or place blame on when something doesn't work is, in the end, converted to the computer's native language- binary. A single binary 1 or a single binary 0 is called a bit, which is short for "binary digit".
  • 21. MORE ON BINARY NUMBER SYSTEM Four bit binary number is called nibble 1 0 1 0 Eight bits together makes most used computer term byte A single byte can represent the decimal values 0 to 255 (256 distinct values) 1 0 1 0 1 1 0 1
  • 22. MORE ON BINARY NUMBER SYSTEM Place a couple of bytes together to represent a single value and you have a 16-bit word (2 bytes = 16- bits). A 16-bit word can represent the values 0 to 65535 (65536 distinct values). 1 0 1 0 1 1 0 1 1 1 0 0 0 1 1 1 32-bit words are 4 bytes in length. They can represent a value from 0 to 4,294,967,295 (4,294,967,296 distinct values)
  • 24. BINARY TO DECIMAL Example binary number: 10001010 Binary representation of decimal 138. Now, look at those numbers above the boxes with the red 1s and 0s. Those are decimal numbers representing powers of 2.
  • 25. BINARY TO DECIMAL These are the values that are above the boxes. Now the actual binary number itself consists of 1s and 0s in the blue boxes which somehow magically represents the decimal number 138. How do we get 138 from 10001010? In the binary number when you see a 1, multiply that 1 times the value that is directly over it. Where you see a 0 in the box, just ignore it.
  • 26. Black board Teaching - Various (From & to) Binary number conversion techniques.
  • 28. OCTAL NUMBER SYSTEM Octal was widely used some 50 years ago by Digital Equipment Corp. (DEC) and other companies that had computers with a 12-bit word (e.g. the PDP-8) or other multiples of six, such as 18 and 36 (e.g. UNIVAC 1108). I used both the PDP- 8 and UNIVAC 1108 in grad school. Characters in both machines typically used six bits, not 8.
  • 29. OCTAL NUMBER SYSTEM According to Wikipedia, octals aren't as common as they used to be. As others have already mentioned, in the past, systems used to have a 12/24/36-bit word, which is more easily represented in octal than hexadecimal, but currently, the x86 and i64 architectures use a 16/32/64 bit word, which is more easily represented in hexadecimal and downright ugly in octal.
  • 30. OCTAL NUMBER SYSTEM APPLICATIONS
  • 31. OCTAL NUMBER SYSTEM APPLICATIONS 1. Octal is used less these days, but C’s standard IO functions allow specifying characters that way. 2. Representation of IP addresses (rare, sometimes used by spammers to obscure addresses). Microsoft accepts octal IP numbers for Ping and FTP. 3. Representation of UTF8 numbers (any start byte is 3nn and any continuation byte 2nn).
  • 32. OCTAL NUMBER SYSTEM APPLICATIONS 4. "Real" real-world use: the Yuki people and in the native Mexican Pamean languages use octal counting because they count the spaces between their fingers 5. Historically in the 1950's, one of the oldest debuggers, UT-3 for the TX-0 computer at MIT (an 18-bit system), could only be operated by using commands written in octal notation.
  • 33. 6. TAR files store some information in octal representation. 7. When fields are naturally divided into three or six bits, octal representation comes in handy . 8. Integers, but also fractions on the Honeywell and other legacy systems were represented as octal. OCTAL NUMBER SYSTEM APPLICATIONS
  • 34. 9. A whole lot of legacy (CDC machines, DEC PDP-8 etc), because they used multiples of 3 bits, like 6-bit or 12-bit word sizes. 10. In 1971, octal numbers were proposed to replace the decimal system. 11. And finally, most trivially: you use it almost everyday when you write down the number 0 in some programming language that supports octals. OCTAL NUMBER SYSTEM APPLICATIONS
  • 35. 12. Codes squawked by Mode 3A transponders in airplanes. 13. Key codes in the ncurses library (ncurses (new curses) is a programming library providing an application programming interface(API) that allows the programmer to write text-based user interfaces in a terminal- independent manner. It is a toolkit for developing … OCTAL NUMBER SYSTEM APPLICATIONS
  • 36. "GUI-like" application software that runs under a terminal emulator. It also optimizes screen changes, in order to reduce the latency experienced when using remote shells.) OCTAL NUMBER SYSTEM APPLICATIONS
  • 38. HEXA DECIMAL NUMBER SYSTEM Ah, hexadecimal. If you've ever worked with colors in web page design, you've proably seen something like ' or something to that effect. Somehow, that 6 digit hexadecimal number is equal to a lavender or light purple color. What on earth does 'A09CF3' mean? Before we explain that, let's look at what hexadecimal (hex) is.
  • 39. HEXA DECIMAL NUMBER SYSTEM Our decimal system, as mentioned in my Binary Tutorial, is a base-10 system, meaning we can count to any number in the universe using only 10 symbols or digits, 0 thru 9. For the computer, a 10- based system probably isn't the most efficient system, so the computer uses binary (in reality, it uses microscopic switches which are either on or off, but we represent them using the digits '1' and '0').
  • 40. HEXA DECIMAL NUMBER SYSTEM Unfortunately, binary isn't very efficient for humans, so to sort of find a happy middle ground, programmers came up with hexadecimal. Hexadecimal is a base- 16 number format (hex=6, decimal=10). This means that instead of having only the digits from '0' to '9' to work with like our familiar decimal, or '1' and '0' like binary, we have the digits '0' to '15'.
  • 41. HEXA DECIMAL NUMBER SYSTEM It also means that we are using the powers of 16, instead of the powers of 2 like in binary As soon as you count over 9 in hex, new digits take over. A=10, B=11, C=12, D=13, E=14 and F=15.
  • 42. HEXA DECIMAL NUMBER SYSTEM 0x0F In fact, the '0x' in front of a hex number is more current than the '$'. The '$' is sort of old school. Whether you use a '$' or a '0x', it tells you that you're working with a hex number, not a decimal
  • 43. HEXA DECIMAL NUMBER SYSTEM APPLICATIONS
  • 44. HEXA DECIMAL NUMBER SYSTEM APPLICATIONS 1. To define locations in memory. Hexadecimals can characterise every byte as two hexadecimal digits only compared to eight digits when using binary. 2. To define colours on web pages. Each primary colour – red, green and blue is characterised by two hexadecimal digits. The format being used is #RRGGBB. RR stands for red, GG stands for green and BB stands for blue.
  • 45. HEXA DECIMAL NUMBER SYSTEM APPLICATIONS 3. To represent Media Access Control (MAC) addresses. MAC addresses consist of 12-digit hexadecimal numbers. The format being used is either MM:MM:MM:SS:SS:SS or MMMM-MMSS- SSSS. The first 6 digits of the MAC address represent the ID of the adapter manufacturer while the last 6 digits represent the serial number of the adapter. 4. To display error messages. Hexadecimals are used to define the memory location of the error. This is useful for programmers in finding and fixing errors.
  • 46. ASCII
  • 47. The American Standard Code for Information Interchange (ASCII) is a character-encoding scheme originally based on the English alphabet. ASCII codes represent text in computers, communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII, though they support many more characters than ASCII does. ASCII
  • 49. ISCII
  • 50. ISCII In recent past the computer activities were limited to specific languages and with the increase in works there was to be develop a slandered code . In 1991, the bureau of Indian standard develop common code called ISCII. this is a 8-bit code capable of coding 256 characters.
  • 52. UNICODE  Unicode provides a unique number for every character,  No matter what the platform  No matter what the program.  No matter what the language. INDIAN LANGUAGES ON UNICODE The standard has incorporated Indian scripts under group name Asian scripts , includes Devnagari , Bengali ,Tamil ,Malayalam.
  • 54. CLASS TEST 1. Write a note on ASCII 05 2. Write a note on Unicode 05 3. Convert the following 10 (i) (1111000)2 = (?) 10 (ii) (234)10 = (?)8 (iii) (564)8 = (?)16 (iv) (AA)16 = (?)10 (v) (555)8 = (?)2 Time: 40 Min Max Marks 20