This is a program made in C++ that randomly generates number system conversion problems.
The following problem types can be generated:
- binary to octal
- binary to decimal
- binary to hexadecimal
- octal to binary
- octal to decimal
- octal to hexadecimal
- decimal to binary
- decimal to octal
- decimal to hexadecimal
- hexadecimal to binary
- hexadecimal to octal
- hexadecimal to decimal
You can compile the program by using the makefile provided in the repository.
git clone https://github.com/PeterTheAmazingAsian/NumConversions.git
cd NumConversions
make release
./NumConversions
Upon running the program, the user will be prompted for a number of problems to practice. The problems will be generated one by one, then asked to the user. After each question the users' answer will be checked. Once all questions are completed a final score will be shown.
Make sure when entering octal numbers you prefix your number with a 0 and when entering hexadecimal prefix your number with 0x.