6 Years Ago 6 Years Ago I want to convert some numbers to binary, octal, and hexadecimal.. for example: . DECIMAL......BINARY......OCTAL.....HEXADECIMAL ................................................................... 1.................00000001.....001.......1 2.................00000010.....002.......2 And so on.. 0 19 7 Years Ago 7 Years Ago Hello all. I'm writing a program that converts from any cominbation of base 2, 8, 10, and 16. So far I have this code and I want to convert from hexadecimal to octal but it doesn't work. I would appreciate any help. Thank you! Here is the code: #include "stdafx.h" #include #include #include #include #include #include #include #include #include #include #include #include #define ULONG unsigned long #define FALSE 0 #define TRUE 1 #define BOOL int #define MAX 1000 using namespace std; void B2D(); void B2O(); void B2H(); void … 0 26 7 Years Ago Hi everyone I'm stuck on a school project. The Following is the prompt: > Write an assembly language program that prompts the user to enter a string to be interpreted as an 8-digit hexadecimal number. Your program must convert the ASCII string representation of this hexadecimal number into a 32-bit unsigned binary number. Then, your program must prepare and store an ASCII string for the octal (base 8) representation of the same number and print it out.Your program should generate an error if the input string contains a character that is not 0 through 9 or A through F (except … 0 1 7 Years Ago 7 Years Ago Hi Guys, I have written the below program to convert binary to octal, it is giving me erroneous results. On entering 1111 as the input number I should get 17 as the output, whereas I am getting 16707000337 as the output. Kindly help me out, below is my program: /*program to convert binary to octal*/ #include #include #include int main() { int bin,dec[100]={0},i=0,j=0,k=0,num=0,output[100]={0},number=0,rem1,rem,output1; printf("enter the binary number to be converted into octal"); scanf("%d",&bin); rem1=bin; /*counts the number of digits in the input binary number*/ while(rem1!=0) { rem1=rem1/10; num+=1; } /*converts binary number to decimal */ for(i=0;i

The End.