answersLogoWhite

0


Best Answer

NOTE: The program below is written in the form of a straight forwards 'table/look up' chart. It will, quite simply, convert no more than 1 single hex digit character, at a time, into its binary number equivalent.

If you wish to convert a whole entire string of hex digit characters together at once; then, I suggest you will need to 'modify' the program yourself by using, possibly, a 'FOR/NEXT loop' statement to extract out each separate hex character which needs to be converted from the users input/together with a function such as, 'MID$()'.

====

Here is a sample program RUN/Output...

Please, enter your single character hex digit(0-9/A-F):

? C

The binary equivalent of the above hex digit is:

1100

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: To convert a hexadecimal number to tis binary equivalent in qbasic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does hexadecimal base 16 convert binary equal?

16 is the 4th power of 2. So a hexadecimal number is converted to binary by replacing each hex digit by the 4-bit binary number having the same value. Conversely, in converting binary to hexadecimal, we group every 4 bits starting at the decimal (binary?) point and replace it with the equivalent hex digit. For example, the hexadecimal number 3F9 in binary is 1111111001, because 3 in binary is 11, F (decimal 15) is 1111, and 9 is 1001.


The minimum number of bits required to store the hexadecimal number FF is?

To store the hexadecimal number FF, we need to convert it to binary first. FF in hexadecimal is equivalent to 1111 1111 in binary, which requires 8 bits to represent. Each hexadecimal digit corresponds to 4 bits in binary, so two hexadecimal digits (FF) require 8 bits to store.


What is the decimal equivalent of 0XFFFF?

0X at the beginning represent a number in the hexadecimal system of units. FFFF is the hexadecimal equivalent of i) 65535 in decimal system of units ii) 1111111111111111 in binary system of units


Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equiavalent?

Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equivalent?


What is the 4-binary number assoiated with the hexadecimal symbol C?

0xc = 1100 Hexadecimal digits use exactly 4 binary digits (bits). The 0x0 to 0xf of hexadecimal map to 0000 to 1111 of binary. Thinking of the hexadecimal digits as decimal numbers, ie 0x0 to 0x9 are 0 to 9 and 0xa to 0xf are 10 to 15, helps with the conversion to binary: 0xc is 12 decimal which is 8 + 4 → 1100 in [4 bit] binary.

Related questions

Convert EF16 to a binary number?

The binary equivalent of the hexadecimal number EF16 is 1110111100010110.


What numerical value in hexadecimal is equivalent to the binary number 1101111010101101?

1101111010101101 in binary is equal to DEAD in hexadecimal.


What does the binary number 00000001 convert to in the hexadecimal system?

01


Convert ABCD1 hexadecimal number to binary?

ABCD1 = 10101011110011010001


Convert the hexadecimal number ABCDEF to octal and binary?

Octal = 52746757 Binary = 101010111100110111101111


What is the hexadecimal equivalent Ethernet address 01011010?

The binary number 01011010 is 005A in hexadecimal.


Convert the following binary number 0100110100011110 to a hexadecimal number?

hex =7


The hexadecimal equivalent of binary number 1111010110100011 is?

1111010110100011 = F5A3


What is the binary value is equivalent to the hexadecimal number C43A?

1100010000111010


Convert 7 into binary number and hexadecimal number?

72 = 111 7Hex = 7


What does hexadecimal base 16 convert binary equal?

16 is the 4th power of 2. So a hexadecimal number is converted to binary by replacing each hex digit by the 4-bit binary number having the same value. Conversely, in converting binary to hexadecimal, we group every 4 bits starting at the decimal (binary?) point and replace it with the equivalent hex digit. For example, the hexadecimal number 3F9 in binary is 1111111001, because 3 in binary is 11, F (decimal 15) is 1111, and 9 is 1001.


How do you convert the binary number 10101010 into hex?

Convert each group of 4 bits into one hexadecimal digit. 1010 is "A" in hexadecimal, so this particular number is "AA".