Binary to Decimal Number Converter Flowchart
Binary to Decimal Number Converter Flowchart
Let’s create a Binary to Decimal Number Converter flowchart using the RAPTOR application. Let’s understand the binary code.
Binary Code
Binary code is a system of representing text, computer instructions, or any other data using a two-symbol system, consisting of “0” and “1”
A binary unit is known as a “bit” (short for binary digit). It is the smallest unit of digital information that a computer can understand. It is stored in a series of zeros(0) and ones(1). A digital computer thinks by relying on zeros and ones for all information.
Decimal Number
Decimal numbers are numbers represented in the base-10 numeral system, which is the most common system used in everyday life. This system uses ten digits.
0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.
Unlike the decimal system (base-10) that uses ten digits (0-9), binary code uses only two digits: 0 and 1.
Example
Let’s convert a simple binary code into a decimal number.
Binary = 101
Decimal = 1*2^2 + 0*2^1 + 1*2^0
= 4 + 0 + 1
= 5
Video Tutorial
Pseudocode
START Dim digit Dim quotient Dim bNumber Dim dNumber Dim i PROMPT "Enter binary number=" Input bNumber dNumber = 0 quotient = bNumber i = 0 Do Until quotient = 0 digit = quotient Mod 10 quotient = floor(quotient / 10) dNumber = dNumber + (digit * 2 ^ i) i = i + 1 Loop Output "Given Binary number=" + bNumber Output "Equivalent Decimal Number=" + dNumber END
Binary to Decimal Number Flowchart
The Raptor flowchart converts binary to decimal numbers.
Sample Output
The sample output of the flowchart:
Given Binary number=10111
Equivalent Decimal Number=23
Flowchart Examples
Raptor Tutorial
Raptor Tutorials on this website can be found at
RAPTOR official website