answersLogoWhite

0

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

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran

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.