Program for Binary To Octal Conversion | Binary to Octal Conversion (Hindi)

Опубликовано: 28 Октябрь 2024
на канале: SRV Institute of technology by Shashi sir
469
20

Program for Binary To Octal Conversion | Binary to Octal Conversion (Hindi)
   / @srvinstituteoftechnologyby7299  

If you found this video valuable, give it a like.
If you know someone who needs to see it, share it.
If you have questions ask below in comment section.
Add it to a playlist if you want to watch it later.

Make sure you LIKE , SUBSCRIBE , COMMENT , and REQUEST A VIDEO! :)

Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2). Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, etc.
Whereas Decimal number is most familiar number system to the general public. It is base 10 which has only 10 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
Method :
Step 1: Write down the binary number.

Step 2: Starting with the least significant digit (LSB - the rightmost one), multiply the digit by the value of the position. Continue doing this until you reach the most significant digit (MSB - the leftmost one).

Step 3: Add the results and you will get the decimal equivalent of the given binary number.

Now, let's apply these steps to, for example, the binary number above, which is (10100)2

Step 1: Write down (10100)2 and determine the positions, namely the powers of 2 that the digit belongs to.
Step 2: Represent the number in terms of its positions. (1 * 2^4) + (0 * 2^3) + (1 * 2^2) + (0 * 2^1+0*2^0)
Step 3: (1 * 16) + (0 * 8) + (1 * 4) +(0 * 2)+ (0 * 1) = 16+ 0 + 4 + 0 +0= 20
Therefore, (10100)2 = (20)10

Example : Convert binary number 1100100 into decimal number.
Binary to decimal is,
= (1100100)2
= 1x2^6+1x2^5+0x2^4+0x2^3+1x2^2+0x2^1+0x2^0
= 64+32+0+0+4+0+0
= (100)10

Octal Number System
Octal Number System has a base of eight and uses the number from 0 to 7. The octal numbers, in the number system, are usually represented by binary numbers when they are grouped in pairs of three. For example, 128 is expressed as 0010102, where 1 is equivalent to 001 and 2 is equivalent to 010.

How is octal calculated?

The octal numeral system, or oct for short, is the base -8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right).

How do you count in base 8?
Example : Decimal 100
Octal 144

How do you calculate Octal value in Java?

Convert Decimal to Octal with Steps :
Write the given decimal number.
If the given decimal number is less than 8 the octal number is the same.
If the decimal number is greater than 7 then divide the number by 8.
Note the remainder, we get after division.
Repeat step 3 and 4 with the quotient till it is less than 8.
Now, write the remainders in reverse order (bottom to top)
The resultant is the equivalent octal number to the given decimal number.

How do you calculate octal numbers?
Input : 100
Output : 144

Conversion from Binary to Octal
Take the given binary number
Multiply each digit by 2n-1 where n is the position of the digit from the decimal
The resultant is the equivalent decimal number for the given binary number
Divide the decimal number by 8
Note the remainder
Continue the above two steps with the quotient till the quotient is zero
Write the remainder in the reverse order
The resultant is the required octal number for the given binary number

Example : Input Binary Number 1100100
Output Octal Number 144

Program for Binary To Octal Conversion
Java Program to Convert Binary number to Octal number

Binary to Octal Conversion (Hindi)
binary to octal conversion in hindi

What is the formula in converting octal to binary?
What is the formula in converting binary to octal ?
Convert Binary to Octal
What are Binary Numbers?

#BinaryToOctal​
#binarytooctalconversion​
#binary​
#octal​
#conversions​
#degitallogicdesignes​

#btech​

BinaryToOctal
#binarytooctalconversion​
#binary​
#octal​
#conversions​
#degitallogicdesignes​

#btech​

BinaryToOctal
#binarytooctalconversion​
#binary​
#octal​
#conversions​
#degitallogicdesignes​

#btech​
BinaryToOctal
#binarytooctalconversion​
#binary​
#octal​
#conversions​
#degitallogicdesignes​

#btech​
BinaryToOctal
#binarytooctalconversion​
#binary​
#octal​
#conversions​
#degitallogicdesignes​

#btech​
BinaryToOctal
#binarytooctalconversion​
#binary​
#octal​
#conversions​
#degitallogicdesignes​

#btech​
#howtoconvertoctaltodecimal​
#howtoconvertbinarytooctal​

Keywords:
Number System
Binary Number System
Decimal Number System
Octal Number System
Hexadecimal Number System
Decimal to Binary Conversion
Binary to Decimal Conversion
Decimal to Hexadecimal Conversion
Hexadecimal to Binary Conversion



#java #bluej #programming #developer #python #learning #edtech #classroom #edapp #elearning #mlearning #scichat #icsesiniogren #icseboard #icsc #cbsc #computer