Write a program in C++that converts number bases. In particular, the program will perform the following tasks:
1) The program should accept entries in decimal, binary, and octal
2) The program will convert numbers entered in decimal, binary and octal to other bases
As practice, users should start by enter values in decimal and convert them to binary, octal and hexadecimal numbers
3) The program should be able to convert to other bases, other than bases 2, 8, and 16
Restrict the additional bases to 3, 4, 5, 6, 7, and 9.
4) The program must work in reverse as well; e.g. if you can convert a number from decimal to binary, you should also be able to convert from binary to decimal.