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
Your employer must offer (at no cost to you) a vaccine against ___________ if your job _____________.'
Scilla [17]

Answer:

hepatitis B; puts you at risk for exposure to bloodborne pathogens

Explanation:

Work practice controls involves all the steps taken in order to decrease the likelihood of getting exposed to any disease or viruses in the workplace. These steps include heath hygiene in vaccinations that are intended to protect the human resources. Hygiene management helps the employers to maintain their health during their workhours.  

In jobs where the employees are exposed to the bloodborne pathogens, it is the responsibility of the employer to vaccinate the employee against hepatitis B.

8 0
3 years ago
Your company's human resource manager is away from the office on vacation, and you have four open positions to fill in your depa
DaniilM [7]

Answer:

An interview

Explanation:

  • Job interviewing is one of the most common methods companies use to recruit new candidates. The interview involves a conversation between prospective candidates and recruiting firm members, usually one candidate at a time.
  • However, there may be one or more members of the interview panel. Through the interview, the candidate's communication skills can be tested as there is an interaction between the interviewer and the interviewer
5 0
3 years ago
Which of the following would be classified as a short-run decision? A restaurant's decision to increase the number of patrons it
podryga [215]

Answer:

A university's decision to add a new residence hall. A trucking firm's decision to move to a smaller facility.

Explanation:

Short run decision affects variable factor only. Adding a new facility is a long run decision. Hence a firm's decision to decrease the amount of electricity used in day-to-day operations by encouraging employees to adopt conservation strategies is a short run decision.

Hence, the correct answer would be:

A university's decision to add a new residence hall. A trucking firm's decision to move to a smaller facility.

4 0
3 years ago
Apr. 2 Purchased $6,900 of merchandise from Lyon Company with credit terms of 2/15, n/60, invoice dated April 2, and FOB shippin
ziro4ka [17]

Answer:

Apr. 2

Merchandise $6,900 (debit)

Accounts Payable : Lyon Company $6,900 (credit)

<em>Purchased Merchandise from Lyon Company on credit</em>

April 3.

Accounts Payable : Lyon Company $390 (debit)

Cash $390 (credit)

<em>Payment of Freight Charges Include in Invoice (FOB)</em>

April 4.

Accounts Payable : Lyon Company $500 (debit)

Merchandise $500 (credit)

<em>Returned Merchandise to Lyon Company</em>

April 17.

Accounts Payable : Lyon Company $6,010 (debit)

Discount Received $120 (credit)

Cash $5,890 (credit)

<em>Payment of amount due to Lyon Company and discount received</em>

April 18.

Merchandise $13,100  (debit)

Accounts Payable: Frist Corp $13,100  (credit)

<em>Purchased Merchandise on credit from Frist Corp</em>

April 2.

Accounts Payable: Frist Corp $400  (debit)

Purchase allowance $400 (credit)

<em>Received and allowance from Frist Corp</em>

April 28.

Accounts Payable: Frist Corp $12,700 (debit)

Discount Received $127 (credit)

Cash $12,573 (credit)

<em>Payment of amount due to Frist Corp and discount received</em>

Explanation:

See the journals and their narrations prepared above.

7 0
3 years ago
Which of the following is not correct with respect to using bcc for recipients of a message?
Korvikt [17]

The option that is not correct with respect to using bcc for recipients of a message is this:

  • It should be the default for all correspondence.
<h3 /><h3>What is the Blind Carbon Copy?</h3>

Blind carbon copy is a way of preventing the recipients of a bulk message from viewing the other addressees. While it is a very good privacy option, it is not expected to be the default for all correspondence.

Sometimes, the addressees might have to view their counterparts so BCC is enabled in such cases.

Learn more about the Blind Carbon Copy here:

brainly.com/question/3594902

#SPJ11

5 0
2 years ago
Other questions:
  • When are you allowed to stand on the top ladder
    15·1 answer
  • How can you know if it’s a good time to start your business A. If you feel excited about it B. There’s never a bad time to start
    7·1 answer
  • Izzy Division of Marine Boats Corporation had the following results last year (in thousands). Sales $4,700,000​ Operating income
    6·1 answer
  • Which advertising technique involves the giving of an additional item at no extra cost? ​
    11·1 answer
  • Sales, Production, Direct Materials Purchases, and Direct Labor Cost Budgets The budget director of Gourmet Grill Company reques
    7·1 answer
  • Market opportunity analysis is most closely tied with _____.
    13·1 answer
  • What did the federal reserve act signed by president woodrow wilson in 1913 establish
    11·2 answers
  • In order to accurately assess the capital structure of a firm, it is necessary to convert its balance sheet figures from histori
    14·1 answer
  • One effective way to manage credit card debt is to:
    7·2 answers
  • Many people who do not smoke cigars are bothered by the odor of cigar smoke. If private contracting is impossible, will too many
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!