ASCII to binary and calculations involved with resulting number
$100-232.65 USD
已完成
已发布超过 12 年前
$100-232.65 USD
货到付款
This project involves taking a file and running multiple calculations on the file by converting the file's ASCII to binary. Using the binary as a decimal number while keeping it in its binary form we run multiple calculations and save results that can be used to return to the original binary form and back into its ASCII form. More details below.
## Deliverables
Once the binary has been obtained several steps must be followed to end up with the results that I am looking for.
[login to view URL] is selected
[login to view URL] is made
[login to view URL] number may have zeros in front of the number. If this is the case count out the zeros until the first one shows up. We would take the zeros in front out and store the number of zero's in the results.
4.A screen should display the number of digits of the binary number with a text box for number entry. The number you enter will be the number of digits for a number comprised entirely of nines.
[login to view URL] now run a modulo operation on the binary number with the newly constructed 9 number. The results of this mod will be saved in the results.
[login to view URL] an option should pop up wether this step should be ran or not. The idea behind the option is we take the binary number and subtract the 9 number. Until the results is at least one digit less then the binary number we repeat subtracting the 9 number counting everytime a result produces a number comprised entirely of zeros and ones. This number will save into the results.
[login to view URL] result will be saved as a text document. The document should have the name of the orginal file with alt at the end of the name. So if I had a file called "abc" the results would save as "[login to view URL]". The results should have the number of digits in the orginal binary number, The amount of digits in the 9 number, the mod results, number of 0s in front of the binary number if any, and the number of times 0 and 1 only numbers appeared if any in reference to step 6.
Now for the second function of this program. Turning the number back.
[login to view URL] file is selected
[login to view URL] into acount how many digits the binary number had we multiply the 9 number by a number that will bring the results number of digits close to the binary number.
[login to view URL] the results from above and add the mod results.
[login to view URL] all these add the 9 number until the results number of digits is equal to the binary number.
[login to view URL] the above criteria is reached we check to see if all the numbers in the result is 1 and 0s. If they are and there was no 1 and 0 numbers we counted then things are done. If there were 1 and 0 numbers we continue until we have reached the right 1 and 0 numbers.
[login to view URL] there was any zeros in front of the binary number orginally they are added back.
[login to view URL] back to orginal form and restore the file back to its file type.
This is the whole project. Looking to work on files as big as a few GB but can work on smaller depending on what can be shown. If you have any questions please let me know.