Here is my assignment: CIS 215 C++ Programming Programming Assignment #2 Due Date: 10/21/13 The Cyclic Redundancy Check is an algorithm that is used to find errors in data that has been stored or transmitted. Since every file or message can be thought of as a single pattern of bits it can be treated as a single large binary number. The CRC technique makes use of a polynomial divisor of length n+1 to divide the source number – discarding the quotient and using the remainder as the check sum for that message. The result of the CRC algorithm is a check value that can be used to determine whether or not the file or message being examined is the same file or message that was used to create the check value. ![]() To be eligible for enrollment in the program. VT 123, VT 130, VT 131, VT 134. See CRC graduation requirements. A cycle redundancy check (CRC) in C programming is an error detecting commonly used in storage devices, etc. Block of data is entered and is checked and it is based. References: For more background information on CRCs I recommend the “Painless Guide to CRC Error Detection Algorithms” by Ross Williams, which you should be able to find at Note that this guide provides C language source code for 16 and 32 bit CRC implementations. You may look at that code for ideas, but you may not copy it verbatim into your assignment. The concept of CRC error checks is easy – but it is often tricky to get the correct answer. Padding the message with zeros, and mismatches between the size of your divisor, and the fields you are considering are a frequent source of errors. Also, keep in mind that the divisor is one bit larger than the width of the field it is correcting – so a CRC-5 polynomial actually has 6 bits. Specification: There are many polynomial divisors of different lengths used to calculate CRCs. For this assignment you should use the CRC-5-USB value (0x12). Implement a checksum program for CRC-5-USB that accepts the name of a file from the command line and prints your signature block and the correct checksum on console standard output. Implement a checksum program for CRC-5-USB that accepts input from console standard input and writes your signature block and the correct checksum on console standard output. Implement a checksum program for CRC-5-USB that accepts the name of a file from the command line and prints your signature block and PASS or FAIL for a file with an appended checksum. Run your program against testfile.txt to produce a checksum.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |