Develop a cpp program that converts a number


Problem

Develop a cpp program that converts a number between 0-2 million to either binary, octal or hexadecimal. The program should have a function that does the calculation for all the conversions and also have functions called binary, octal, and hexadecimal functions that just call the calculation function depending on what the conversion is so basically have four functions.

Function requirement

Binary Function eg. string convDecToBinary() = just calls the convDec() function
Octal Function eg. string convDecToOctal() = just calls the convDec() function
Hexadecimal Function eg. string convDecToHexa() = just calls the convDec() function

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Develop a cpp program that converts a number
Reference No:- TGS03232649

Expected delivery within 24 Hours