Use the CRC polynomial: x15+x13+ x6+x4+x1+1.
1. The program must compile from the command line.
2. The program executable file name must be “crcheck”.
3. The program must run from the command line and take two (2) command line parameters.
4. The first command line parameter will be a flag value that identifies the mode of operation: “c” for calculating a CRC value, or “v” for verifying a CRC value. Only these two values are allowed. Any other values should produce a simple error message and a graceful exit from the program.
5. The second command line parameter will be the name of the file to be examined. The file should be a text file that is in the same folder as the program executable. If the file is not found, the program should issue a simple error message and exit gracefully.
6. The program should direct all output to the command window (terminal) screen. The details of what to output are described below.
7. The program MUST run on Eustis. Please make sure to test your program on Eustis before submitting the assignment.
What to submit:
Submit a single source code file written in C, C++, or Java. No other languages are permitted.
• The source code file must be a .c, .cpp, or .java file.
• Put all classes, functions, and methods in the one file.
• If programming in Java, do not place the source in your own package so our test scripts can run without changes.
• If you are coding in C or C++, you must use only the standard libraries, such as stdio.h, math.h, and Standard Template Library.
• If using Java, your source file must be named crcheck.java.
You must also submit a README file, which must be a text file, and which contains:
• The compilation command for your program
• The run command for your program
• Your statement that the program is entirely your own work and that you have neither developed your code together with any another person, nor copied program code from any other person, nor permitted your code to be copied or otherwise used by any other person, nor have you copied, modified, or otherwise used program code that you have found in any external source, including but not limited to, online sources.
More info included.
TIME REQUIRED : 5 HOURS