Question: Write a C++ program that will prompt a user for a numeric base (decimal, binary, or hexadecimal), ask for the value, and then convert to
Write a C++ program that will prompt a user for a numeric base (decimal, binary, or hexadecimal), ask for the value, and then convert to the other two bases. Here is a sample run of the program (bold is user input):

We can assume that the input will always be valid, so you don't need to concern yourself with validating input.
This program should only work with whole, positive number values.
NUMERIC CONVERTER Which numeric base is the value in? a. Decimal b. Binary c. Hexadecimal Selection: a What is the value: 1234 Results Decimal: 1234 Binary: 10011010010 Hexadecimal: 4D2
Step by Step Solution
3.52 Rating (162 Votes )
There are 3 Steps involved in it
To write a C program for the given task youll need to handle different numeric bases and convert the... View full answer
Get step-by-step solutions from verified subject matter experts
