Question

In: Computer Science

Compute the check sum for each of the following data. a. 0x1243 0xFFE0 b. 0xFF34 0xEFD0...

Compute the check sum for each of the following data.
a.
0x1243
0xFFE0
b.
0xFF34
0xEFD0
0X3210
0xEDFE

Solutions

Expert Solution

Checksum is an error detection method

To Find Checksum value :

1)we add all the given segments then we get result .if any carry is generated from result after addition it must be added back to result to get final sum

2)result of the sum is complemented using 1's complement arithmetic


a)

0x1243 in Binary:

0xFFE0 in Binary:

ADD BOTH BINARY NUMBERS(0x1243+0xFFE0):


so the carry of 1 should be added to resultThere is a carry of 1 generated from a most significant bit.

Final sum=0001001000100100

to get Checkum value Final sum is complemented

1's complement of Final sum=

Cheksum value =

b)

0xFF34 in Binary:

0xEFD0 in Binary:

0x3210 in Binary:

0xEDFE in Binary:

ADDING  FIRST TWO BINARY NUMBERS(0xFF34+0xEFD0 ):


so the carry of 1 should be added to result.There is a carry of 1 generated from a most significant bit.

Add the sum with ox3210

There is a carry of 1 generated from a most significant bit.

so the carry of 1 should be added to result

Add the sum with 0xEDFE

There is a carry of 1 generated from a most significant bit.

so the carry of 1 should be added to result

Fianl sum=0000111100010101

to get Checkum value Final sum is complemented

1's complement of Final sum=

Cheksum value =


Related Solutions

(Python) Implement a function to compute a sum that can compute sum for an arbitrary number...
(Python) Implement a function to compute a sum that can compute sum for an arbitrary number of input integers or float numbers. In other words, calls like this should all work: flexible_sum(x1, x2) # sum of two integer or float numbers or strings x1 and x2 flexible_sum(x1, x2, x3) # sum of 3 input parameters and can also handle a single input parameter, returning it unchanged and with the same type, i.e.:   flexible_sum(1) returns 1 and can accept an arbitrary...
For each of the following loan options (a & b) compute the following values: - annual...
For each of the following loan options (a & b) compute the following values: - annual loan payment - proportion of principle and interest in the first annual payment - total interest paid over the entire time line of the loan -total principal paid over the entire time line of the loan a. You have decided to purchase a capital asset using an 850,000 at a rate of 8% for 25 years. b. You have decided to purchase a capital...
For each of the following loan options (a & b) compute the following values: ? annual...
For each of the following loan options (a & b) compute the following values: ? annual loan payment ? proportion of principle and interest in the first annual payment ? total interest paid over the entire time line of the loan ? total principal paid over the entire time line of the loan a. You have decided to purchase a capital asset using an 850,000 at a rate of 8% for 25 years. b. You have decided to purchase a...
5. Compute the treatment Sum of Squares for the data presented in the table below. Here...
5. Compute the treatment Sum of Squares for the data presented in the table below. Here there are 3 observations in cell 1 and cell 2, but only 2 in cell 3.  (It certainly can happen). COMPUTE ONLY THE SUM of SQUARES FOR TREATMNET Treatment 1 Treatment 2 Treatment 3 Measurements 4, 8, 6 10, 10, 13 8, 5 Grand Average Averages 6 11 6.5 =   8 SS Treatment  = 6.  In the following table, enter all data listed above in question 5, to...
For the following set of data, please compute the following: a. Mean b. Median c. Skew...
For the following set of data, please compute the following: a. Mean b. Median c. Skew (Left, Right, or None) d. Mode e. Range f. Variance g. Standard deviation. Y = {3, 7, 5, 6, 9, 14, 2, 1, 6}
For the accompanying data​ set, (a) draw a scatter diagram of the​ data, (b) compute the...
For the accompanying data​ set, (a) draw a scatter diagram of the​ data, (b) compute the correlation​ coefficient, and​ (c) determine whether there is a linear relation between x and y. x 2 6 1 7 9 y 8 2 6 9 5 Critical Values for Correlation Coefficient n 3 0.997 4 0.950 5 0.878 6 0.811 7 0.754 8 0.707 9 0.666 10 0.632 11 0.602 12 0.576 13 0.553 14 0.532 15 0.514 16 0.497 17 0.482 18...
For the accompanying data​ set, (a) draw a scatter diagram of the​ data, (b) compute the...
For the accompanying data​ set, (a) draw a scatter diagram of the​ data, (b) compute the correlation​ coefficient, and​ (c) determine whether there is a linear relation between x and y.    Data set x 7 6 6 7 9 y 3 2 6 9 5 Critical Values for Correlation Coefficient n 3 0.997 4 0.950 5 0.878 6 0.811 7 0.754 8 0.707 9 0.666 10 0.632 11 0.602 12 0.576 13 0.553 14 0.532 15 0.514 16 0.497...
Input 10 integers and display the following: a. the sum of even numbers. b. the sum...
Input 10 integers and display the following: a. the sum of even numbers. b. the sum of odd numbers. c. the largest integer d. the smallest integer e. the total count of even numbers f. the total count of odd numbers. Using C++ program with for loop..
Compute the missing amount for each of the following separate companies in columns B through E....
Compute the missing amount for each of the following separate companies in columns B through E. (Losses and amounts to be deducted should be indicated with a minus sign.) CBS ABC CNN Equity, beginning of year $0 $0 $0 $0 Owner investments during the year 110,000 98,560 220,736 Dividends during the year (54,000) (9,000) (54,000) Net income (loss) for the year 106,000 54,640 (5,000) Equity, end of year $112,000 $108,640 $120,736
(c) Compute the sample correlation coefficient r for each of the following data sets and show...
(c) Compute the sample correlation coefficient r for each of the following data sets and show that r is the same for both. (Use 3 decimal places.) (i) x 6 1 9 y 4 2 5 (ii)x 4 2 5 y6 1 9
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT