Program to convert between different bases

A small linux command line program that converts between bases Useage: Run the program, and enter the unit in one of 4 formats. Binary: 0bxxxxxxxx Hex: 0xXX Octal: 0oXX Deciaml:XX Code: [code land=”c”] #include <iostream> #include <string> #include <readline/readline.h> #include <readline/history.h> #include <stdlib.h> using namespace std; void binary(long number) { long remainder; if(number <= 1)…