Question: Write a C++ program to perform number base conversion, specifically with Base 2 and Base 10. Your program should meet the following functional requirements: Receive
Write a C++ program to perform number base conversion, specifically with Base 2 and Base 10. Your program should meet the following functional requirements:
- Receive user input in Base 10
- Receive user input in Base 2 (receive only 1s and 0s)
- Output the user input in Base 10 along with the conversion to Base 2
- Output the user input in Base 2 along with the conversion to Base 10
- Continue this process while the user input in Base 10 is nonnegative
Implementation requirements:
- Implement and invoke 3 functions
- Base 10 to Base 2
- Base 2 to Base 10
- Input of Base 2 value to enforce the entry of only 1s and 0s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
