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
Text written for advertising and marketing campaigns is referred to as o content. context O copy o collateral​
melisa1 [442]

Answer:

always be it and never fail

Explanation:

5 0
3 years ago
What is the IRR for a project that costs $100,000 and provides annual cash inflows of $30,000 for 6 years starting one year from
ahrayia [7]

Answer:

A) 19.91%

Explanation:

Net present value of cash flow at 19.91% can be calculated as follows

- 100000 + 30000/1.1991 + 30000/ (1.1991)² + 30000/(1.1991)³ + 30000/ (1.1991)⁴ +30000/(1.1991)⁵ + 30000/ (1.1991)⁶

= -100000 + 25018 +20864 +17400 +14511 +12101 +10092

= 0 ( approx )

So  the IRR for the  project is 19.91 % .

8 0
4 years ago
Kimbeth Manufacturing uses process costing to control costs in the manufacture of Dust Sensors for the mining industry. The foll
larisa86 [58]

Answer:

DM Cost per Equivalent unit: 4.25

Explanation:

22400 beginning  60% materials 20% conversion

140,000 started

33600 ending 90% materials 40% conversion

Beginning Inventory

DM 71,160

DL 26,610

MO 20,110

Conversion Cost  46,720

Cost during the month

DM 618,800

DL 241,330

MO 513,600

Conversion Cost 754,930

Equivalent units Materials

22,400 * .4     8,960

140,000       140,000

33,600 * .1    (3,360)

                  145,600

DM Cost per Equivalent unit: 4.25

7 0
3 years ago
Charity Hospital is holding its annual gala in a fancy downtown hotel. Tickets are $200 each, and the organization estimates tha
allsm [11]

Based on the amount paid for the tickets and their fair value, the portion that is entitled to <u>charitable contribution deduction</u> is $75.

When one buys a ticket to a charitable event, there is a chance that some of the ticket price can be treated as a charitable contribution deduction.

The part that can be treated as such is anything in excess of the fair value of the ticket. This amount in this case is:

= 200 - 125

= $75

In conclusion, the answer is $75.

Find out more on <u>charitable contribution deductions</u> at brainly.com/question/8706786.

5 0
3 years ago
There are two universities, A and B, in a city. Tuition rises at University A and, as a result, the demand for attending Univers
LenaWriter [7]

Answer:

Substitutes

Explanation:

The education services at the two universities are substitutes to each other. The cross price elasticity of substitute goods is positive which indicates that as the price of one good increases then as a result the demand for other good increases and if the price of one good decreases then as a result the demand for other good decreases.

Now, if there is an increase in the tuition fees at University A, hence, this will increase the price of educational services at University A. Therefore, this will lead to an increase in the demand for educational services at University B.

4 0
3 years ago
Other questions:
  • Which of the following analytical techniques is designed to output the best decision?
    6·1 answer
  • Scenario D.1 Jerry Allison is in charge of production for a small producer of plumbing supplies. The cricket model has an estima
    12·1 answer
  • Under the equity method, the receipt of cash dividends on an investment in common stock of vallerio corporation is accounted for
    13·1 answer
  • Elaine serves as a consultant about human resource matters to various areas of the business at her company. She works closely wi
    11·1 answer
  • A firm facing a price of $10 in a perfectly competitive market decides to produce 100 widgets. If its marginal cost of producing
    14·1 answer
  • To choose the best training method, a company should consider such factors as the number of people to be trained, the cost of tr
    6·1 answer
  • A company must account for a contract modification as a new contract if Group of answer choices the modification adds distinct g
    6·1 answer
  • Economics ch 7 <br> What are the 2 barriers to entry in a market
    14·1 answer
  • To adjust for rent used up during the year that was recorded to the prepaid rent account when paid for, Multiple choice question
    15·1 answer
  • ______ helps managers understand work flow, select the best applicants for jobs, improve employees' job performance, and ensure
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!