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
Viger Corporation has a standard cost system in which it applies manufacturing overhead to products on the basis of standard mac
Iteru [2.4K]

Answer:

Manufacturing overhead rate variance= $2,600 favorable

Explanation:

Giving the following information:

Budgeted level of activity 9,300 MHs

Actual level of activity 9,500

MHs Standard variable manufacturing overhead rate $ 8.00 per MH

Actual total variable manufacturing overhead $ 73,320

To calculate the variable overhead rate variance, we need to use the following formula:

Manufacturing overhead rate variance= (standard rate - actual rate)* actual quantity

Actual rate= 73,320/9,500= $7.72 per machine hour

Manufacturing overhead rate variance= (8 - 7.72)*9,500

Manufacturing overhead rate variance= $2,600 favorable

7 0
3 years ago
On August 1, Batson Company issued a 60-day note with a face amount of $49,800 to Jergens Company for merchandise inventory. (As
jok3333 [9.3K]

Answer: See explanation

Explanation:

a. Determine the proceeds of the note assuming the note carries an interest rate of 8%.

The proceeds of the note is the face value which is $49800.

b. Determine the proceeds of the note assuming the note is discounted at 8%.

Face amount: $49800

Less: Interest = $49800 × 8% × 60/360 = $664

Proceed of the note = $49136

5 0
3 years ago
Which of the following is NOT an example of a sociological hypothesis? Question 1 options: a) The more study halls students are
3241004551 [841]

Answer:

c) The more CDs Jamila buys, the less money she has in her bank account.

Explanation:

A hypothesis is an assumption of relationship between two or more variables.

Sociological hypothesis is an assumption that one human behaviour will influence another.

Let's take each of the options.

a) The more study halls students are given during the school day, the worse they perform on their tests.

Implies that the action of giving more study hall caused a decline in performance in tests (behavioural).

b) The longer an inmate spends in prison, the more difficult it is for him to adapt to the outside world.

Implies that when an inmate stays longer in prison behavioural ability to adapt to the outside work declines (behavioural).

c) The more CDs Jamila buys, the less money she has in her bank account.

Does not involve assumptions about behaviour, just a financial fact that the more CDs Jamila buys her money will reduce.

4 0
3 years ago
​Last year, Boeing secured long-term financing in order to expand their facilities. Boeing will include the loan payments on the
meriva

Answer:

The correct answer is Cash.

Explanation:

The cash budget, also known as projected cash flow, is a budget that shows the forecast of future cash inflows and outflows (cash) of a company, for a given period of time.

The importance of this budget is to allow the future availability of cash (to know if we are going to have a deficit or a surplus) and, based on that, to be able to make decisions.

3 0
2 years ago
The information that is gathered by a firm to learn about its competitors is referred to as ________.
anzhelika [568]
Answer:  "competitor analysis" .
______________________________________________
3 0
3 years ago
Other questions:
  • A review of small business successes and failures indicates that the Multiple Choice businesses that are easiest to start offer
    9·1 answer
  • A nation reaches its steady state equilibrium when
    12·1 answer
  • A​ check-processing center uses exponential smoothing to forecast the number of incoming checks each month. The number of checks
    13·1 answer
  • Sergio gets a haircut from Amelia and writes a check to pay for it. In this transaction, the drawee is: a. the bank on which the
    10·1 answer
  • Consider an income guarantee program with an income guarantee of $6,000 and a benefit reduction rate of 50%. A person can work u
    7·1 answer
  • A Whopper combo meal costs $3.00 and gives you an additional 15 units of utility; a meal at the Embassy Suites costs $29.00 and
    12·1 answer
  • Julie and Barry Spinos purchased a house for $96,400. They made a 25 percent down payment and financed the remaining amount at 5
    9·1 answer
  • I Will give brainliest!!!!!!!!!!!! Now I know this isn't a question for schools, but I figured I really need this answer. A frie
    7·1 answer
  • Which information is found on a credit report?
    12·1 answer
  • Question 4 of 10
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!