PLEASE READ THESE INSTRUCTIONS PRIOR TO USING THE CONVERTER/CALCULATOR BINARY TO DECIMAL - Click on the "BINARY TO DECIMAL" button to start your conversion. When prompted to enter a binary integer, ensure there are no other characters entered besides 0 or 1. - Ensure your the amount of characters you enter is not more or less than 4, as this program operates using 4 bits of data and will not function properly if your input exceeds either of these values. DECIMAL TO BINARY - Click on the "DECIMAL TO BINARY" button to start your conversion. When prompted to enter a decimal integer, ensure there are no other characters besides 0 through 9. - Ensure that the number you enter is not greater than 15 or less than 0, as this program operates using 4 bits of data and will not function properly if your input exceeds either of these values. CALCULATOR - Click on the "CALCULATOR" button to start your calculation.You may input your two integers as either binary or decimal integers if you wish, or one of each. - When inputting the two integers you would like to add, ensure that they follow the same formatting rules outlined for conversion. - You can have your final answer displayed as either a decimal or binary integer. When prompted, ensure your answer includes either the word "binary" or the word "decimal". No other answers will be accepted by the program. HISTORY - Click on the "HISTORY" button to see a list of all of your previous calculations and conversions, presented from oldest to newest. Press the button again to hide the list. - **Clicking the green flag will reset your history.** Leave the scripts running. After every successful conversion or calculation, the answer will be displayed for 5 seconds and you will be brought back to the main menu. After a failed conversion or calculation attempt, you will receive an error message and will be prompted to re-input your integer after 5 seconds.
The maximum value that this calculator can add to is 30. The calculator writes all answers using 5 bits, while the others do not. There are many hard-coded limits within this program, mainly due to the project's impending deadline. In the future, I might continue to work on this project for fun and add the rest of the features I wanted to add, like variable bit count, answers displayed in both binary and decimal value, addition using more than 3 integers, subtraction, a settings page, etc. Let me know if I should. All code was written by me. Feel free to use it at your discretion, although I am more than sure there are more optimal methods of conversion and addition than the ones I used in this project. If you find any bugs or notice any specific combinations of numbers not displaying the correct information, please inform me in the comments. Thank you kindly