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
Dave is a salaried employee who works in a gas station. He only earns from his job and has no other source of income. He gets a
tigry1 [53]

Answer:

In my opinion the most suitable answer is E. increase his sources of income to show a rise in his income after taxes

Explanation:

The reason is he could lower his expenses too, but for how long? Inflation is going to eat his salary away anyway possibly in 5 to 10 years so what Daventry ustock do is to create another source of income so that he is safe. Possibly through investing in income generating assets, real estate and possibly a side hustle! (A small time business)

5 0
3 years ago
Which is an advantage corporations enjoy over partnerships?
Trava [24]
<span>The owners of a corporation don't have to work together to make all of the business decisions.

</span>An advantage of corporations enjoy over partnerships is that the owners of a corporation don't have to work together to make all of the business decisions, while this is true for partnership. Partnership<span> generally has more money to invest in starting or expanding a business.</span>
3 0
3 years ago
READ THE GREY PART!!!!! THIS IS A PAST DUE!!!! PORTFOLIO ITEM: WRITING AND ARGUMENTATIVE ESSAY: FINAL DRAFT: FREEDOM FIGHTERS! P
VikaD [51]

Answer: just get your parents to double check it and fix your spelling errors etc and turn in your final draft

Explanation:

7 0
3 years ago
Read 2 more answers
promissory note received from a customer in exchange for an account receivable is recorded by the payee as
luda_lava [24]

Answer: Note Receivable

Explanation:

A Note Receivable is a written document from a party promising to repay another party with interest on amounts borrowed in form of cash or otherwise thereby creating a debtor - creditor relationship between them.

When a promissory note is received from a customer in exchange for an accounts receivable it is a <em>Note Receivable</em> and the Payee being the creditor will record it as such.

4 0
3 years ago
Suppose you have a two-stock portfolio consisting of Apple and Tesla stock. The portfolio weight of Apple is 25% and the rest is
iren [92.7K]

Answer:

Standard deviation = 47.69% (Approx)

Explanation:

Given:

Portfolio of Apple stock w1 = 25% = 0.25

Portfolio of Tesla stock w2 = 75% = 0.75

Standard deviation return Apple σ1 = 35% = 0.35

Standard deviation return Tesla σ2 = 60% = 0.60

Correlation coefficient ρ12 = 0.22

Find:

Standard deviation

Computation:

Standard deviation = √w1²σ1² + w2²σ2² + 2w1σ1w2σ2ρ12

Standard deviation = 0.4769

Standard deviation = 47.69% (Approx)

4 0
3 years ago
Other questions:
  • Remsco has taxable income of $60,000 before considering charitable contributions. The $60,000 is net of a dividends received ded
    9·1 answer
  • The balance sheet of Hidden Valley Farms reports total assets of $450,000 and $550,000 at the beginning and end of the year, res
    11·1 answer
  • Are people’s needs limited?
    5·2 answers
  • Fuel Connector Products, Inc., agrees to sell Go-Flo, Inc., a certain quantity of hose couplings and fittings, but the contract
    15·1 answer
  • In a typical day working for coors brewing, alan will deliver beer, restock shelves, clear out old beer, take orders for the nex
    13·1 answer
  • Assume that the exchange rate between the euro and the dollar is €1.00 = $1.50. an american tourist in germany is buying a produ
    13·2 answers
  • Fabtabtix, a designer clothing brand, has been selling clothes in the country of Grolania for over 30 years. With more number of
    10·1 answer
  • Sheffield Corporation retires its $980000 face value bonds at 104 on January 1, following the payment of annual interest. The ca
    11·1 answer
  • An investment earns 35% the first year, earns 40% the second year, and loses 38% the third year. The total compound return over
    11·1 answer
  • Which of the following strategies will help companies succeed during the growth stage of a product cycle? a. Focusing on develop
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!