Question: For this assignment, we're creating a program that converts any binary, decimal, or hexadecimal number into binary, decimal, or hexadecimal form. The user should be
For this assignment, we're creating a program that converts any binary, decimal, or hexadecimal number into binary, decimal, or hexadecimal form.
The user should be able to enter any binary, decimal, or hexadecimal number. The program should autodetect the base of the number.
The program should then prompt the user to convert to either binary, decimal, or hexadecimal.
The program should then do the conversion and display the result.
For example, if the user enters and opts to convert it to decimal, the program should detect the number as binary base and it should convert it to base The output would look like this:
## Grading Criteria
The program includes a function that checks if a string of characters represents a binary number point
The program includes a function that checks if a string of characters is a decimal number point
The program includes a function that checks if a string of characters is a hexadecimal number point
The program includes a function that determines the base of a string of characters ie a binary number returns a decimal number returns a hexadecimal number returns point
The program includes a function that converts a string of characters to either binary, decimal, or hexadecimal depending on the parameters sent to it point
The program correctly converts binary to decimal point
The program correctly converts binary to hexadecimal point
The program correctly converts decimal to binary point
The program correctly converts decimal to hexadecimal point
The program correctly converts hexadecimal to binary point
The program correctly converts hexadecimal to decimal point
The user is allowed to enter a number in binary, decimal, or hexadecimal format, otherwise the user is prompted to try again point
The user is allowed to choose what to convert to binary decimal, or hexadecimal otherwise the user is prompted to try again point
The program shows the converted value correctly ie if decimal was chosen point
The program continues allowing the user to convert different numbers until the user decides to exit point
The program pauses at the end until the user presses enter to exit
The author name, date, and program title are in the first three lines of the program
The program runs without any errors
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
