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
Jessica is a U.S. Army Reservist and in 2019 traveled 130 miles each way to serve duty at a local military installation. She was
faust18 [17]

Answer:

Jessica's for AGI deduction for these costs is:

b. $14.00.

Explanation:

The aggregate gross income (AGI) can be defined as the total amount of income that an individual earns and is used in calculating the amount of income tax that an individual is liable to pay. The AGI can be expressed as follows;

AGI=T×N×W

where;

AGI=aggregate gross income

T=toll amount per way

N=number of times she reported

W=number of way

In our case;

AGI=unknown, to be determined

T=$1.75

N=4

W=2

Replacing;

AGI=(1.75×4×2)=$14.00

Jessica's for AGI deduction for these costs is:

b. $14.00.

4 0
3 years ago
Job A3B was ordered by a customer on September 25. During the month of September, Jaycee Corporation requisitioned $3,400 of dir
saul85 [17]

Answer:

Total cost of Job A3B=  $31,900

Explanation:

Job A3B was ordered by a customer on September 25.

The company applies overhead at a rate of 100% of the direct labor cost incurred.

Cost of September:

$3,400 of direct materials

$4,900 of direct labor.

$4,900 manufactured overhead

Total= $13,200

Cost of October:

$3,900 of direct materials  

$7,400 of direct labor

$7,400  manufactured overhead

Total= $18,700

Total cost of Job A3B= 13,200 + 18,700= $31,900

3 0
3 years ago
The shape of your utility function implies that you are arisk-averse individual, and, therefore, youwould accept the wager becau
Furkat [3]

<u>Solution and Explanation:</u>

As the utility function is concave in shape, so person is risk averse.  Thus, he will not accept the gamvle.

The difference between utility at point A&C = 70 minus 65 = $5, is less than a the difference between A&B = 65 minus 55 = $10

<u>MCQ: </u>

Answer is option a&d  - risk averse people fear a lot for losing money, thus they overestimate the probability of loss

Since, shape of utility function is concave, hence the double derivative of utility with respect to wealth is negative, so utility falls at an decreasing rate , as wealth increases

8 0
3 years ago
The potential sales that will be generated by a customer if the customer remains loyal to that company for a lifetime are referr
shusha [124]
I think the most appropriate answer would be "Value".


I hope it helped you!
5 0
3 years ago
You have just taken over your family’s printing business. It is important to you that the business has a positive impact on your
Nimfa-mama [501]

Answer:

a. Some of your printing processes utilize chemicals that require press operators to wear masks during production.<u> </u><u>Health and safety risks.</u>

Those chemicals present a health and safety risk because a person can get sick if they do not wear the masks.

b. Because of increased profits in the last 5 years, you have been able to increase staffing levels by 25%. <u>Increase employment.</u>

<u></u>

c. The business is a member of the local Chamber of Commerce and supports local community charities. <u>Improve the quality of life</u>

The business supports local charities which shows that it aims to improve the quality of life.

<u></u>

d. The business is the only one in town to offer 48-hour turnaround on printing projects. <u>Offer valuable products</u>

The business is the only one offering this service so it is offering valuable services.

<u></u>

e. The business uses ink that is shipped in bulky, non-recyclable ink containers. <u>Environment damage</u>

Ink is bulky and containers are non-recyclable. This will cause environmental damage.

5 0
3 years ago
Other questions:
  • You work for a leveraged buyout firm and are evaluating a potential buyout of UnderWater Company.​ UnderWater's stock price is $
    5·1 answer
  • A cost which remains constant per unit at various levels of activity is a:
    15·1 answer
  • Which of the following retirement plans offer tax benefits?
    7·1 answer
  • The balance sheet of Cattleman's Steakhouse shows assets of $86,800 and liabilities of $14,800. The fair value of the assets is
    15·1 answer
  • You purchased 250 shares of a particular stock at the beginning of the year at a price of $104.32. The stock paid a dividend of
    15·1 answer
  • Sergio, the manager of a software firm, has a new project for his team. He is preparing a set of targets and making decisions on
    15·1 answer
  • If 7% is deducted from Matthew's annual pay of $1,771 to pay for state taxes, then how
    8·1 answer
  • the true statement from the list below, regarding the Contribution Format Income statement. Multiple Choice The Contribution For
    10·1 answer
  • You were recently hired by Scheuer Media Inc. to estimate its cost of capital. You obtained the following data: D1 = $1.75; P0 =
    10·1 answer
  • Ann Hopkins borrowed $60,000 for her child’s education. She must repay the loan at the end of 8 years in one payment with 512% i
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!