1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mumz [18]
3 years ago
5

For this assignment you will write a crc integrity checking program will have two modes of operation. your program must implemen

t the crc calculation method involving long division by a polynomial that we discussed in lecture. in "calculation" mode, the program will calculate the crc-12 value for a given input string. in "verification" mode, the program will interpret the last 3 hex characters of an input string as a crc-12 value, and it will then determine whether this is the correct crc-12 value for the input string without those 3 characters. in both modes, the program must report header information, intermediate results, and final results as described further below. the mode and the input string to process will be supplied to your program as command line arguments. the program will be graded according to the grading rubric that appears at the bottom of this assignment.
Business
1 answer:
AVprozaik [17]3 years ago
3 0

Of course, some of the recorded functions will very likely invoke others of these functions. It is decent practice to reuse components instead of writing the same block of code in multiple places. Many logical errors can be evaded by doing so, and if any corrections are needed, they can be done conveniently in just one place.

Keep in mind that the basic idea is to break down the overall task into small pieces that can be developed (and tested) separately so you can build your program incrementally.

Program Output

The program must present output consisting of header information, intermediate results, and final results, as described separately below. Sample outputs follow in the next section.

Header Information

The header information should be written on distinct lines as shown in the sample outputs that follow. The individual lines are:

1. The program must first write a string of 62 hyphens (dashes) to serve as a separator, and then, 2 lines below it, the string "CIS3360 Fall 2017 Integrity Checking Using CRC", and then on the next line the string "Author: " followed by your name (or names, if teaming) and a newline.

2. The program must then write the string "The input string (hex): ", followed by the string value of the second command line input argument

3. The program must then write the string "The input string (bin): ", followed by the binary value of the second command line input argument, and then a newline.

4. The program must then write the string "The polynomial that was used (binary bit string): ", followed by the 13-bit binary value of the polynomial given at the top of this assignment with spaces every 4 characters to improve readability.

5. The program must then write the string "Mode of operation: ", followed by either the word "calculation" or "verification", depending on the value of the first command line input argument

6. The content of this line depends on whether the mode is calculate or verify.

a. If in calculation mode, this line should read: "Number of zeroes that will be appended to the binary input: 12"

b. If in verification mode, this line should read: "The CRC observed at the end of the input: ", followed by the binary and hex values for the last 3 hex characters of the input string, as shown in the sample outputs that follow.

Intermediate Results

This section will begin with the string: "The binary string difference after each XOR step of the CRC calculation", followed by a newline.

Following the above statement, this section will show on separate lines the results of each XOR step as described above, with spaces every 4 characters as shown to improve readability.

Note that for calculation mode, you must pad the binary version of the input string with 12 zeroes before you start the division procedure, but for confirmation mode you have two choices. The first step is to remove the last three hex characters demonstrating the observed CRC, in which case you must then pad the rest with 12 zeroes like you were calculating the CRC. The second step is to leave the detected CRC attached to the rest of the input, in which case you should not add zeroes for padding. The difference between these two choices determines how you will interpret the result in the bottom row of the intermediate results output.

<span> </span>

You might be interested in
What is the primary reason that we have 3 branches
Alex_Xolod [135]
To keep every other branch in check if we had only one then they could go corrupt. (separation of power)
8 0
3 years ago
The classical dichotomy is useful for analyzing the economy because in the long run nominal variables are heavily influenced by
Contact [7]

Answer:

The answer is: True

Explanation:

First of all, the classical dichotomy in economics assumes that real variables of the economy such as output of goods and services and real interest rates are not influenced by what happens to their nominal counterparts, such as the monetary value of output and nominal interest rate.  It doesn´t consider inflation or the nominal supply, in other words money supply is neutral in the economy (because its value is adjusted to inflation).

The real problem with this theory, at least in the short run, is that in real life money supply, interest rates and inflation do affect the GDP of a country. When the money supply of an economy is increased then aggregate demand also increases. More money equals more demand. That happens because the prices of goods and services doesn´t adjust as fast as a change in the money supply. Also this theory doesn´t consider the monetary circuit theory about money being "created" by the banking system every time a loan is made.

7 0
3 years ago
The Treaty of Paris gave __________ to the United States.
faltersainse [42]
It is A. i think...........
8 0
3 years ago
Read 2 more answers
Is 5 a composite or prime number
enot [183]
5 is a prime number
5 0
3 years ago
Read 2 more answers
The compensation associated with restricted stock units (RSUs) under a stock award plan is: A. The book value of an unrestricted
pantera1 [17]

Answer:

Allocated to expense over the service period which usually is the vesting period.

Explanation:

The compensation associated with restricted stock units (RSUs) under a stock award plan is Allocated to expense over the service period which usually is the vesting period.

The compensation associated with restricted stock units (RSUs) under a stock award plan is computed as

Number of shares represented by the RSUs * market price of an unrestricted share of the same stock.

5 0
3 years ago
Other questions:
  • Because colgate owns patent number 5,547,091, only colgate sells toothpaste with a flip-top cap, while others use the more tradi
    10·1 answer
  • Assume that you have recently purchased 100 shares in an investment company. Upon examining the balance sheet, you note that the
    9·1 answer
  • On a given trading day, 700 stocks advanced and 1,200 stocks declined. The volume of declining stocks was 280 million while the
    12·1 answer
  • Refer to the original data. assume that the company sold 18,000 units last year. the sales manager is convinced that a 10% reduc
    6·1 answer
  • An informal trade barrier is created by government actions.<br> Oa. True<br> Ob. False
    8·1 answer
  • Nan presents her plan for a slip-on shoe that is water repellent, inexpensive, and highly fashionable. She believes that the mar
    11·1 answer
  • Pratique Solutions offers jobs that require creativity and hires people who are enthusiastic and friendly. Their pay scale meets
    5·1 answer
  • Eco Strip Inc. makes a paint remover which is made up of two direct materials, X and Y. The standard costs and standard quantiti
    11·1 answer
  • How technological change affect retail business industry?
    9·1 answer
  • M/b ratios typically exceed -select- , which means that investors are willing to pay more for stocks than their accounting book
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!