Write a program that prompts the user to enter a hexadecimal value. On the next line, display the binary equivalent. If no hexadecimal value is entered, display “INVALID”. The Execution should look like this:

Enter a Hexadecimal Value: 0B
Binary: 00001011
[esc key terminates the program]

Enter a Hexadecimal Value: GH
Binary: Invalid

help me please..

i need it now badly..

4 activities at a time..

i do lacks on time..

please help me..

thanks..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.