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
Family and consumer sciences cooperative extension agent is an example of a job in which career pathway?
MrRa [10]

Family and consumer sciences cooperative extension agent is an example of a job in which career pathway in Family and Community Services.

<h3>Who is consumer cooperative extension agent?</h3>

These are individuals who reach out to people about the cooperative.

They go about to tell people about the various operations and benefits that are attached to being a member.

Therefore, family and consumer sciences cooperative extension agent is an example of a job in which career pathway in Family and community Services

Learn more on cooperative below

brainly.com/question/24131725

#SPJ1

7 0
2 years ago
In order for private bargaining to result in the efficient outcome,A) an injunction must be requestedB) property rights must be
lianna [129]

Answer:

The correct answer is letter "B": property rights must be clearly assigned to the parties involved in the dispute.

Explanation:

Named after British lawyer and economist Ronald Coase (<em>1910-2013</em>) the Coase Theorem states when there are competitive markets and no transaction costs bargaining will lead to an efficient and mutually beneficial outcome. The theorem affirms that when property rights are defined and divided, parties will gravitate to the most efficient and beneficial outcome.

3 0
3 years ago
Multiple Choice Question Mahan Corporation expects total sales to increase by 20% over the next year. The corporation has no spa
AlekseyPX

Answer:

$48,000

Explanation:

The computation of the corporation debt is shown below:

Since the asset is increased by 20%

The present asset is $100,000

ANd, the increased assets is

= $100,000 + $100,000 × 0.20

= $100,000 + $20,000

= $120,000

Now the debt is

= $120,000 × 0.4

= $48,000

hence, the last option is correct

3 0
3 years ago
Suppose that the government decides to regulate this natural monopolist by requiring the firm to charge a price of P2. Which is
Natali5045456 [20]

If the government takes this approach, consumer surplus would increase.

A monopoly is when there is only one firm operating in an industry. A natural monopoly occurs when there is a high start-up cost associated with opening a business or a firm enjoys economies of scale.

Consumer surplus is the difference between the willingness to pay of a consumer and the price of the good. As the price of a good declines, consumer surplus increases. P2 is lower than P1, this means that if price is regulated to P2, consumer surplus would increase.

Please find attached the graph required to answer this question. To learn more, please check: brainly.com/question/15415230

7 0
2 years ago
If a labor union successfully restricts the supply of labor to​ firms, and if the union is not able to influence the demand for​
Alisiya [41]

Answer:

(B) ​rises; decreases

Explanation:

  • As the labors are unable to motivate the other laborers of the firm in the organization then the wage rate will increase the form needs more and more laborers to work in the factory or the production units and hence the employment opportunities will decline as an upward movement along the demand curve.
3 0
3 years ago
Other questions:
  • Over the last two decades the combination of the internet, high definition TV, and the surround sound has revolutionized watchin
    10·1 answer
  • Since your first birthday, your grandparents have been depositing $140 into a savings account every month. The account pays 12%
    15·1 answer
  • Aggregate demand is more likely to _________________ than aggregate supply in the short run. A. shift substantially B. remain un
    13·1 answer
  • Jose visited a garage sale and found a baseball card collection which he believed was worth over $1,000. he bought the collectio
    11·1 answer
  • All of the following are defined as "institutional buyers" under the Uniform Securities Act EXCEPT:________a. banksb. insurance
    8·1 answer
  • True or False:
    11·1 answer
  • At December 31, 2017, Mallory, Inc., reported in its balance sheet a net loss of $12 million related to its postretirement benef
    9·1 answer
  • what key environmental changes do you think will increasingly force managers to be proficient at conducting environmental analys
    7·1 answer
  • an employee is leaving your company. which of these steps are appropriate to take during offboarding? check all that apply.
    13·1 answer
  • when an estimated model begins to describe the quirks of the data rather than the real relationships between variables, this is
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!