Reference no: EM132207734
Write a program that:
Asks the user to input a non-negative integer value in base 10. Asks the user to input a base to which the base 10 value should be converted.
The user should be able to request bases 2, 3, 4, 8, or 16. Uses the Quotient/Remainder method to perform the conversion.
No other method is acceptable. Print out the base 10 number and the number in the requested base.
Note that for Hex you must obviously use A, B, C, D, E, and F for 10, 11, 12, 13, 14, and 15 respectively
Continues this loop until the user enters a-1 as the base 10 value.