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
alexandr402 [8]
3 years ago
12

1. Show the 16-bit representation of the decimal number 2437. Show your steps. 2. Convert the 16-bit representation of part (a)

to the corresponding odd-parity Hamming code. Show your steps.
Computers and Technology
1 answer:
irina [24]3 years ago
5 0

Answer:

1. 2437 base 10 = 0000100110000101 base 2

2. 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1

Explanation:

1. To convert a number from decimal to binary you successively divide the number by two, if the remainder (modulo) of the operation is 0 the binary number in that position is 0  otherwise the binary number is 1. You continue dividing the whole number by two, until the  whole number equal to zero. The final binary number is going to be all the remainders, from bottom to top or from right to left.

2437/2 = 1218 with remainder of 1

1218/2 = 609 with remainder of 0

609/2 = 304 with remainder of 1

304/2 = 152 with remainder of 0

152/2 = 76 with remainder of 0

76/2 = 38 with remainder of 0

38/2 = 19 with remainder of 0

19/2 = 9 with remainder of 1

9/2 = 4 with remainder of 1

4/2 = 2 with remainder of 0

2/2 = 1 with remainder of 0

1/2 = 0 with remainder of 1

Therefore the number is (from bottom to top): 0000100110000101, the four zeros at the beginning are to make the number a binary of 16-bits, remember than leading zeros have no value.  

2. First select all the positions in the binary number that are power of two and mark them as parity bits (1, 2, 4, 8, 16, 32 ...), all other position (3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15 ...) are for the data to be encode, each parity bit compute the parity  of some of the bits in the codeword as follow:  

Position 1: check 1, skip 1, check 1, skip 1 ...

Position 2: check 2, skip 2, check 2, skip 2 ...

Position 4: check 4, skip 4, check 4, skip 4 ...

Position 8: check 8, skip 8, check 8, skip 8 ...

Position 16: check 16, skip 16, check 16, skip 16 ...

...

Finally, set a parity bit to 1 if the total number of 1 in the positions it checks is odd, set it to zero otherwise.

let's start:

  1. 0000100110000101 -> _ _ 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 (positions _ are parity bits)
  • Start in 1, check 1, skip 1: x _ 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is even, there are 4 ones, the first number is a zero; the new bit string is -> 0 _ 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 2, check 2, skip 2: 0 x 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is odd, there are 3 ones -> 0 1 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 4, check 4, skip 4: 0 1 0 x 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is odd -> 0 1 0 1 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 8, check 8, skip 8: 0 1 0 1 0 0 0 x 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is odd -> 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 16, check 16, skip 16: 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 x 0 0 1 0 1 -> because the number of ones is even -> 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1

Therefore, our result is:  0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1

You might be interested in
Please help
Goryan [66]
The answer is B data digging
3 0
3 years ago
Write a method named quarterstodollars. the method should accept an int argument that is a number of quarters, and return the eq
enyata [817]
 public static void quarterstodollars(String[] args) {    Scanner input = new Scanner(System.in);    System.out.println("Enter number of Quarters:");
    System.out.print("Quarters:");    int Q1 = input.nextInt();
DecimalFormat fmt = new DecimalFormat("$#,###.##");    System.out.println("Total:"+fmt.format(calctotal(Q1)));}public static double calctotal(int Q1) {    double total;    total=(0.25 * Q1);    return (total);}

Hope this helps!
7 0
4 years ago
Read 2 more answers
??????????????????????????
suter [353]

Answer:

procedimento

Explanation:

faz se a montagem conforme mostra a figura.

6 0
3 years ago
PLEASE HELP ME
alexira [117]

Answer:

it won't be able to run

Explanation:

because computer runs on physical memory

5 0
2 years ago
The Magic Square is a grid with 3 rows and 3 columns with the following properties: The grid contains every number from 1 to 9.
riadik2000 [5.3K]
Umm I’m sorry but u don’t understand
8 0
3 years ago
Other questions:
  • Which is the main function of the arithmetic and logic unit (ALU)?
    5·2 answers
  • Why is Brainly always deleting either my answers or my questions? I am putting nothing inappropriate in them. Can someone answer
    7·2 answers
  • A spreadsheet can be filtered only by one column at a time? <br> true or false
    14·2 answers
  • Write the following arithmetic expression as a valid C arithmetic expression: x = x + number
    9·1 answer
  • How does form get its power natural gas
    14·1 answer
  • ___ allow users to select controls by keyboard shortcuts. (Points : 3) Alternative keys
    13·1 answer
  • Q1 To remove filter
    15·2 answers
  • Why does a print document need a higher raster effect setting ?​
    14·1 answer
  • Test if the word mold is stored in the variable word. Computer science.
    9·1 answer
  • Congress are smart becuase.....
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!