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
​self-checkout at a grocery store is an example of
kherson [118]
Self-checkout @ a grocery store is an example of a customer participation in service delivery.
Hope this helps!!!
3 0
3 years ago
Assume you receive a 3.5% raise in your 2014 salary for 2015. In addition, suppose the CPI was 238 in 2014 and 240 in 2015. Your
GalinKa [24]

Answer: a. increased

Explanation:

Inflation rate = (CPI of second year - CPI of the first year ) / CPI of the first year

= (240 - 238) / 238

= 0.84%

Your wage increased by 3.5% which is more than inflation so your real wage increased by;

= 3.5 - 0.84

= 2.66%

4 0
2 years ago
PLEASE LEAVE A COMMENT EVEN IF THERE ARE TWO ANSWERS! Hi, I am picking a name for my coffee shop, I was thinking CoffeeCake beca
sveta [45]
...coffecakes thats a cute name

3 0
2 years ago
Read 2 more answers
Candice tells Yuri that she wants to hear his ideas about the Q4 Finance Report, and Yuri says that they should compare it to la
Sloan [31]

c.

Arrogantly

Explanation:

What Candice is saying here basically boils down to 'we don't need to compare this to last year's performance as I want to see positive results not negatives'<u> insinuating that the performance has become worse in the last year.</u>

<u>Regressions in a financial report mean weaker performance over the fiscal year while projections mean that the performance was better.</u>

4 0
3 years ago
when sending a claim to the insurance company for services provided by the physician why are both ICD-10 and CPT codes required
SSSSS [86.1K]

When a patient receives services from a licensed doctors, these services are recorded and assigned codes by the medical coder. ICD codes are used for diagnoses, while CPT codes are used for various treatments. The summary of these services, through these code sets, make up the bill. Medical Claim Billings are rejected when Diagnostic code (ICD-10 code) and procedure code (CPT code) are missing, not complete, or do not match to the treatment given by the physician.

8 0
3 years ago
Other questions:
  • Marigold Corp. provides financial consulting and has collected the following data for the next year’s budgeted activity for a le
    7·1 answer
  • Given that gabby is looking for a budget-priced flight home for the holidays, she will need to find out what various options exi
    6·1 answer
  • The direct exchange of goods and services for other goods and services is known as
    14·1 answer
  • A Treasury bond that settles on August 10, 2016, matures on September 27, 2021. The coupon rate is 4.6 percent and the quoted pr
    13·1 answer
  • When a company uses the allowance method to measure bad? debts, ________?
    10·1 answer
  • Bill and Alma are shopping for their first home. They have found two houses that are nearly identical except for their locations
    15·1 answer
  • Under the Contract To Buy &amp; Sell Real Estate, if Buyer fails to notify Seller by the New Loan Termination Deadline that Buye
    15·1 answer
  • If you encounter a process that has limited flexibility, shorter lead times, and cheaper products, customization most likely is
    11·1 answer
  • Your neighbor borrowed your new lawn mower and used it to trim his rock garden thus destroying it. Your lawn mower which cost yo
    13·1 answer
  • Help me please i need it​
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!