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
Debit postings to the individual accounts in an accounts receivable subsidiary ledger generally come from the
umka21 [38]
Bank transaction fee
4 0
3 years ago
Which of the following is an example of competing on quick response?A) A firm produces its product with less raw material waste
finlep [7]

Answer:

C) A firm's products are introduced into the market faster than its competitors' products.

Explanation:

Quick response refers to shorten the delivery time of products and services to meet  the need of customers at the right moment. This is a way to survive the competition and increase the customer satisfaction. According to this, an example of competing on quick response wil be that a firm's products are introduced into the market faster than its competitors' products as the firm will be having a better delivery time than the competition which will allow it to put the goods first in the market which will give it an advantage by being first.

4 0
3 years ago
n the 1930s, what caused Canada to respond by raising its tax on goods imported from the United States? the Glass-Steagall Act t
Misha Larkins [42]
In the 1930s Canada decided to raise taxes on goods imported in the United States in retaliation for the high tariffs that were created by the Hawley-Smoot Tariff. The Hawley-Smoot Tariff raised tariffs on nearly 20,000 imported goods to the United States to extremely high levels. This policy was put in place in an effort to protect American jobs following the Great Depression, but instead closed the U.S. economy off to the global market most likely hurting the American economy further. 
3 0
3 years ago
Bayest Manufacturing Corporation uses a predetermined overhead rate based on direct labor-hours to apply manufacturing overhead
Juliette [100K]

Answer:

Applied overhead = $380,250

Under applied by = $71,750

Explanation:

Firstly, we know that the formula for overhead rate is ;

Overhead rate = Cost of manufacturing overhead/Cost driver

It also means that to get the predetermined overhead rate, the expected cost will be distributed along a cost driver. Hence;

Labor hours = $396,500/61,000 = $6.5

The above rate would then be applied to the actual labor hour for the period

= $58,500 × $6.5 = $380,250

It therefore means that the applied overhead for the period is $380,250

We will now compare the applied overhead with actual overhead

= $380,250 - $452,000

= ($71,750)

It means that the overhead was under applied as the actual overhead cost was higher.

3 0
2 years ago
At its inception, Peacock Company purchased land for $50,000 and a building for $220,000. After exactly 4 years, it transferred
Viktor [21]

Answer:

Selvick company should record the building at $220,000 and accumulation depreciation of $44,000

Explanation:

The computation of deprecation is shown below:

Depreciation = (Original cost - salvage value) ÷ useful life

where,

Original cost is $220,000

Salvage value is 0

And, the useful life is 20 years

Now put these values to the above formula

So, the answer would be equal to

= $220,000 - 0 ÷ 20

= $11,000

And, the accumulated depreciation would be

= Depreciation × number of years

= $11,000 × 4

= $44,000

we ignored other information which is given in the question, as we have to compute the depreciation through Straight line method.

Hence, Selvick company should record the building at $220,000 and accumulation depreciation of $44,000

7 0
3 years ago
Other questions:
  • Anybody know how to do FIFO / LIFO Accountancy stuff?
    9·1 answer
  • Total taxes paid divided by total income is called the
    5·2 answers
  • Sonic Inc. manufactures two models of speakers, Rumble and Thunder. Based on the following production and sales data for June, p
    14·1 answer
  • Mark Ventura has just purchased an annuity to begin payment two years from today. The annuity is for $8,000 per year and is desi
    13·1 answer
  • Item8 3.57 points Item Skipped eBook AskPrintReferences Check my work Check My Work button is now enabledItem 8Item 8 3.57 point
    7·1 answer
  • Which of these will cause aggregate demand to shift to the right?
    13·1 answer
  • Identify the change in the parent function that will produce the related function shown as a dash line. f(x)= √ x
    7·1 answer
  • What is the law of demand?
    9·1 answer
  • In an organization, the functional level is made up of ________, which provide specific and focused strategic direction.
    15·1 answer
  • Select the account that would be decreased if the owner of hillary's hair salon decides to withdraw $40 for personal use. multip
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!