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
hammer [34]
3 years ago
13

Construct the Hamming code for the bit sequence10011101

Computers and Technology
1 answer:
dusya [7]3 years ago
3 0

Answer:

<u>Bit sequence 10011101</u>

For finding Redundant bits ,we check-

        2^r >= r+m+1

      m is no of bits.

We check from 1,m=8

2>10 which is wrong.

We check from 2,m=8

4>11 which is wrong.

We check from 3,m=8

8>12 which is wrong.

We check from 4,m=8

16>13 which is right

So r=4, there are 4 redundant bits;

r1,r2,r4,r8        

Inserting redundant bits in bit sequence-

1  0  0  1  r8  1  1  0 r4  1 r2  r1

r1 is the first parity bit

r2 is the second parity bit

r4 is the third parity bit

r8 is the forth parity pit

We will use even parity bit-we have to make no of 1's = even , if already no of ones is even, then simply r = 0 else r=1.

for r1, we will check at the positions which consist one's at the first position(1,3,5,7,9,11) .

for r2, we will check at the positions which consist one's at the second position (2,3,6,7,10,11) .

for r4, we will check at the positions which consist one's at the forth position(4,5,6,7,12) .

for r8, we will check at the positions which consist one's at the eighth  position(8,9,10,11,12) .

Calculating r1

as bit no. 3 = 1

     bit no. 5 = 0

     bit no. 7 = 1

     bit no. 9 = 1

     bit no. 11 = 0

to make no. of 1's even we have r1 = 1

For r2

count no of 1's at bit (2,3,6,7,10,11)

No. of 1's are  = 3 (on bit 3,6,7)  

As 3 is odd

for even parity,we have to make it 1

Similarly ,

r4 =1

r8 =0

Hence Following are the redundancy bits.

r1 = 1  

r2 = 1  

r4 = 1  

r8 = 0

So the Hamming code is 100101101111

You might be interested in
Write a Python program to: ask the user to enter the price of an item. Note: use a while loop to check the validity of the price
garik1379 [7]

Answer:

Hi there Tonyhh! Please find the implementation below.

Explanation:

You can save the below code in a file called "price_discount.py". The code is implemented in python 2.0+. To make it work in Python 3.0+, simply update the code to use "input" rather than "raw_input".

price_discount.py

def calculate_discount(price, quantity):

 total = 0.95 * price * quantity;

 return total;

price = raw_input("Enter a price: ");

try:

 price = int(price);

 while price <= 0:

   print("Input a valid number: ")

   price = raw_input("Enter a price: ");

 quantity = raw_input("Enter a quantity: ");

 try:

   quantity = int(quantity);

   if quantity >= 10:

     print(calculate_discount(price, quantity));

 except ValueError:

   print("Invalid quantity!")

except ValueError:

 print("Invalid input!");

 price = -1;

3 0
3 years ago
What is the meaning of Ram?​
masya89 [10]

Answer:

Random-Access Memory

Explanation:

used as a short-term memory for computers to place its data for easy access

5 0
2 years ago
Simone frequently downloads mobile apps from Amazon Appstore. What operating system does she have on her smartphone?
Angelina_Jolie [31]
She has the Android operating system if she’s frequently downloading mobile apps from the Amazon App Store as opposed to IOS which is the Apple operating system.
7 0
3 years ago
Alfred, a software programmer at Gamma Inc., develops a program that spreads Trojan viruses to the organization’s network. When
Rasek [7]

Answer: (A) legal and ethical

Explanation:

 In the above given scenario, the liam's behaviors is consider as legal and ethical. The organization ethics is the morals of an association, and it is the means by which an association reacts to an inner or outside upgrade. Hierarchical morals is associated with the authoritative culture.

The ethical standard are basically depend on the human standards of good and bad and lawful guidelines depend on composed law, while moral norms depend on human rights and wrongs.

In the organization, the ethical and legal value are basically expressed by each employee as it is the regulatory law which is developed by the government for the particular organization to maintain the discipline.

3 0
4 years ago
In financial language, a “quarter” is one quarter of a year, or three months. Your annual sales are $123,000. The sales are spre
OLga [1]
Divide $123,000 by 5 and get
24600
8 0
3 years ago
Read 2 more answers
Other questions:
  • Ashley wants to know the oldest form of both water purification and waste disposal. Help Ashley determine the methods. The oldes
    14·1 answer
  • Silver, lead, and hydrogen are examples of what type of matter?
    12·1 answer
  • What range of leakage current must trip an IDCI?​
    15·1 answer
  • A file to which information is written is referred to as a(n) ____ file.
    8·1 answer
  • How do you compare text on different pages of a document?
    14·1 answer
  • 1. What are the biggest password mistakes that people and companies make? How can you avoid those mistakes?
    11·1 answer
  • Why would a user want to resend a message? Check all that apply.
    7·2 answers
  • Which of the following are pointers?
    9·1 answer
  • Electrical data suitable for transmission is called a(n)
    5·1 answer
  • Technology?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!