Question: Write a program using C + + to convert from binary, octal, hexadecimal and decimal numbers ( both integers and floating point numbers ) .
Write a program using Cto convert from binary, octal, hexadecimal and decimal numbers both integers and floating point numbersYour program woud ask the users to enter a number in binary or decimal ask the users what type of number it is binary or decimal check to make sure the number is legal a decimal number contains only If the number is not legal, it should error out! If the number is legal, convert the number to the other types Hint: There are a total of types: binary, octal, hexadecimal, decimalProgram needs to do basic errorchecking NOTE: You CANNOT use ANY predefined builtin functions to do the conversion such as the following!! Integer.toStringn decimal to octalInteger.toStringn decimal to binaryInteger.toStringndecimal to Hex You must use your functionsmethods Think iteration loops or recursion. You must use the additionsubtraction method or the divisionmultiplication method
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
