This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I've got a file titled input.txt. The first line of the file has a divisor and the second line has the message. I have to write a single Java class that accepts a single command line argument of an integer - and when it is 0 it has to compute the CRC code implementing the CRC algorithm. Once the checksum computation is completed, the output should be the message with the CRC code.
I know how this works on paper, I just can't seem to put it into Java! What is the algorithm? What is checksum? Help!!!
You know how it works on paper... but it sounds like you don't know what CRC is and how it works. Do a Google search, I'm sure you can find info on the CRC algorithm. I think there are different variants of the algorithm, so you might have to find out exactly which variant you need.