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
Mark s wife asked him how his first day at work went. He smiled and said everyone he met told him about how Jed McClusky single-
Nookie1986 [14]

Answer:

The correct answer is a. corporate stories.

Explanation:

Corporate stories are events that occurred in the past, which, because of their relevance to the development of the organization, serve as a reference to project into the future. What is sought with these types of events is to motivate, encourage employees to perform their tasks in the best way, trying to make every effort to achieve it.

7 0
2 years ago
The fixed cost of Brendon Willows, a baseball bat manufacturing company, is $500,000 per year. The cost of wood and labor to man
Inessa [10]

Answer:

option (B) 25,000

Explanation:

Data provided in the question:

Fixed cost = $500,000 per year

Cost of wood and labor to manufacture one bat = $5

Selling price of the bat = $25

Now,

At breakeven, total cost equals to the total revenue

let the breakeven quantity be 'x'

thus,

$500,000 + $5x = $25x

or

$25x - $5x = $500,000

or

$20x = $500,000

or

x = 25,000

Hence,

the correct answer is option (B) 25,000

7 0
3 years ago
Imagine that you invest $100,000 in an account that pays 5.9% annual interest compounded monthly. What will your balance be at t
kodGreya [7K]
The compound interest formula is: A= P(1+ \frac{r}{n} ) ^{nt}
Where:
A is the amount you will have.
P is the money you are investing.
r: is the interest rate (in decimals)
n: number of times the interest is compounded per year
t: time (in years)

The first thing is converting the rate from percentage to decimal: 
\frac{5.9}{100} = 0.059

Since the interest is compounded every month and a year has 12 months n=12.

Now we can replace the values in our formula:
A=100000(1+ \frac{0.059}{12} ) ^{(12)(18)}

We can simplify the exponents to get:
A=100000(1+ \frac{0.059}{12} ) ^{216}

Finally, we can use our calculator to get 288463.33

After 18 your balance in your bank account will be $288463.33
4 0
3 years ago
Joyce’s office building was destroyed in a fire (adjusted basis of $350,000; fair market value of $400,000). Of the insurance pr
professor190 [17]

Answer:

$10,000 gain

Explanation:

The computation of recognized loss or gain is shown below:

= Insurance proceeds amount - adjusted basis

= $360,000 - $350,000

= $10,000 gain

So, it would have a recognized gain of $10,000 by considering the amount of insurance proceed and adjusted basis. We ignore all other information which is given in the question

3 0
3 years ago
John Gardner is the city planner in a medium-sized southeastern city. The city is considering a proposal to award an exclusive c
borishaifa [10]

Answer:

<u>Monopoly</u>

P =      $20.00

Q = 10,000

<u>Socically Efficient:</u>

P = $16.80

Q = 14,000

The monopoly generates a deadthweight loss to maximize their gain.

In the socially efficient situation, there is no deadthweight loss threfore this makes the economy as a whole better.

Explanation:

Price = 28 - 0.0008Q

Marginal Cost  = 0.0012Q

Revenue: P x Q = (28 - 0.0008Q) x Q = 28Q - 0.0008Q²

Marginal Revenue:

R' = R(q) / dq = 28 -0.0016Q

We want to produce and sale until marginal revenue matches marginal cost:

28 -0.0016Q = 0.0012Q

28 = 0.0028Q

Q = 28 / 0.0028 = 10,000

P = 28 - 0.0008 (10,000) =

P = 28 - 8 = 20.00

The social efficiency will be that Price equals Marginal Cost.

28 - 0.008Q = 0.0012Q

28 = 0.0020Q

28 / 0.0020 = Q = 14,000

P = 28 - 0.0008(14,000) = 28 - 11.2 = 16,8

7 0
3 years ago
Other questions:
  • What do you call the second year of high school?
    10·1 answer
  • A machine purchased 1 year ago for $85,000 costs more to operate than anticipated. When purchased, the machine was expected to b
    10·1 answer
  • A firm is considering the acquisition of a new machine. The base price is $85,000 and it would cost $15,000 to install. The mach
    15·1 answer
  • he primary objective of financial accounting information is to provide useful information to the following: a. Regulators b. Man
    8·1 answer
  • If Sue, owner of Camp Bow Wow in Boulder, Colorado, says Heidi Granahl, CEO and founder of Camp Bow Wow, is a leader who establi
    8·1 answer
  • Wind Fall, a manufacturer of leaf blowers, began operations this year. During this year, the company produced 10,000 leaf blower
    6·1 answer
  • Sandra Stone, Vice President of International Operations for Global Apparel Corporation, was working with her subordinate, Pete
    9·1 answer
  • . Which one of the following businesses would be the most difficult to get funding for?
    7·1 answer
  • Briefly define and give a specific example of:A.1.Scale economies in connection with urban economics (i.e., related to land use,
    13·1 answer
  • MedTech Corp. stock was $55.25 per share at the end of last year. Since then, it paid a $0.45 per share dividend. The stock pric
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!