Question: Problem: Write a C++ program to perform number base conversion, specifically with Base 2 and Base 10. Your program should meet the following functional requirements:
Problem: 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
Comments:
- Each file should have a header comment block at the top with the following information
- Each function definition should be preceded by a comment block with the following information
- Function Name
- Incoming Parameters
- Outgoing Parameters (pass by reference)
- Return Value
Note: Should one of the items above be blank, put N/A
- Each major section of code should have a description label and be separated with a line of commented characters (ex. Function Declarations, Driver, Function Definitions, etc.)
- Comment lines or segments of code that are not selfexplanatory through the code itself
Style Conventions for this Project:
- All identifiers should be meaningful
- Constants should be all caps
- Variables should be nouns when appropriate and begin with a lower case letter
- Functions should begin with a verb and should begin with an upper case letter
- Use CamelCase (functions/classes) or camelCase (variables) for multiple words
- Make consistent use of tabbing and curly braces
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
