Skip to main content

CONVERSION BEETWEEN OCTAL AND BINARY BY TWO METHODS

Conversion Octal To Binary:
We can Convert Octal number into binary no by two methods:-
1. Convert Octal to Decimal and again Convert Decimal into Binary.
Ex-  (256)8=(?)2
Sol.  Convert it in Decimal
         (256)8
        =2x82 + 5x81 + 6 x 80
        =2x64+5x8+6x1
        =128+40+6
        = (174)10
          Now Convert it into Binary,
2
174
R
2
87
0
2
43
1
2
21
1
2
10
1
2
5
0
2
2
1

1
0


(174)10=(10101110)2
2. Convert to Octal to Binary with the help of list.
Determine the value of each digit according to the geven list:
0=000
1=001
2=010
3=011
4=100
5=101
6=110
7=111
Steps:-
  • Write  the value of each Digit according the list.
  • The formed number is equivalent to Binary.
Ex-  (256)8=(?)2
Sol.  Convert it in Binary with the help of list.
         (256)8=(010101110)2
                      =(10101110)2
Conversion Binary To Octal:
We can Convert binary number into Octal no by two methods:-
1. Convert Binary to Decimal and again Convert Decimal into Octal.
Ex-  
(10101110)2=
= 1x27 + 0x26 +1x25 +0x24 + 1x23 + 1x22 + 1x21 + 0x20
=1x128+0x64 + 1x32 + 0x16 + 1x8 + 1x4 + 1x2 + 0x1
= 128+32+8+4+2
= (174)10
          Now Convert it into Octal,

8
174
R
8
21
6

2
5

(174)10=(256)
8

2. Convert to Binary to Octal with the help of list.
Determine the value of each digit according to the geven list:
0=000
1=001
2=010
3=011
4=100
5=101
6=110
7=111
Steps:-
  • Write  the value of each Digit according the list.
  • The formed number is equivalent to Binary.
Ex-  (10101110)2=(?)8
Sol.  Convert it in Octal with the help of list.
         (10101110)2
        =10  101  110
        =010  101  110 (Add '0' to make three digit)
        = (256)8

Comments

  1. Plese give the steps of binary to hexa decimal and hexa decimal to binary an 2s complement

    ReplyDelete
  2. ya sure. Tqq Dear. Sry for late responce. I will update notes as soon as possible. TQ

    ReplyDelete

Post a Comment

Popular posts from this blog

Computer Generations

 Computer Generations   Computers have evolved over time through different generations, each marked by significant technological advancements and changes in design and architecture. These generations are often categorized based on the underlying hardware and the key developments that distinguish one Generation from another. Let's explore the main computer generations: First Generation Computers    The First Generation of computers refers to the initial period of electronic computing, characterized by the use of vacuum tubes as the primary electronic component. This Generation spans the 1940s and 1950s and is marked by groundbreaking developments in computer technology.  Examples of First-Generation Computers:  o ENIAC (Electronic Numerical Integrator and Computer): Completed in 1945, ENIAC was one of the first electronic general-purpose computers. It was designed to calculate artillery firing tables for the United States Army during World War ...

Programming in "C"

 Introduction   C is a general-purpose programming language that was developed in the early 1970s by Dennis Ritchie at Bell Laboratories. It has since become one of the most widely used programming languages and has influenced the development of many other languages, including C++, Java, and C#. C is known for its efficiency, flexibility, and low-level programming capabilities. It is commonly used for system programming, embedded systems, and developing operating systems. C is also a popular choice for developing applications that require high performance, such as game engines and scientific simulations.   Here are some key features and concepts of C programming:   Syntax: C has a relatively simple syntax compared to some other programming languages. It uses a combination of keywords, variables, data types, operators, and control structures to write programs.  Variables and Data Types: You declare variables to store data in C. Various d...

History of Language "C"

  History of C      The history of C programming dates back to the early 1970s when Dennis Ritchie created it at Bell Laboratories. Here's a brief timeline of the major milestones in the history of C:  1969: The development of C began as a successor to the B programming language, which Ken Thompson created. Dennis Ritchie wanted to improve upon B's capabilities and efficiency.  1972: The C programming language was developed primarily to support the development of the Unix operating system. Ken Thompson and Dennis Ritchie rewrote Unix in C, which helped in porting the operating system to different computer architectures easily. 1978: The first edition of "The C Programming Language," also known as the "K&R C," was published. Brian Kernighan and Dennis Ritchie wrote it, becoming the authoritative reference for C programming. 1983: The American National Standards Institute (ANSI) formed a committee to establish a standard for the C language. The ...