Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

? ?Please answer in C++ only Assignment: You need to write a program which, given a seven digit binary input (which I will provide), it

?image text in transcribed?Please answer in C++ only

Assignment: You need to write a program which, given a seven digit binary input (which I will provide), it will check to see if there is a single bit error using the Hamming Code method discussed in class. Remember, Hamming Code has three check bits, located at 1,2, and 4. The full Hamming Code method is described on Blackboard, under the 1500 sectionA s content with Venn Diagrams and Error Correction. For a sample of Hamming Code, the input from Homework 3: 1011001 will reveal that A 00T is the location of the error (meaning the first slot in the number), so the corrected number would be 0011001, and the actual message transmitted (minus the check bits), would be 1001, which is 9 in decimal. You can use this example to test your program to ensure it's working correctly. FOR YOUR ASSIGNMENT: Create a program which can, given a 7-bit long input, written in Hamming Code style, do the three following tasks, displaying the results as output. Determine if there's an incorrect bit, and if so, where it is. Display what the CORRECT code should look like (if it needs to be corrected.) Display the decimal form of the message that was sent, after any needed correction. Remember, when using Hamming code, only the 3, 5, 6, and 7 slots comprise the actual message! For your input, use the following five inputs, and show the results of each. 1101010 0010111 1010101 1001001 0110011 Please don't forget that you can use the sample of Hamming Code provided to test your code for correctness. Assignment: You need to write a program which, given a seven digit binary input (which I will provide), it will check to see if there is a single bit error using the Hamming Code method discussed in class. Remember, Hamming Code has three check bits, located at 1,2, and 4. The full Hamming Code method is described on Blackboard, under the 1500 sectionA s content with Venn Diagrams and Error Correction. For a sample of Hamming Code, the input from Homework 3: 1011001 will reveal that A 00T is the location of the error (meaning the first slot in the number), so the corrected number would be 0011001, and the actual message transmitted (minus the check bits), would be 1001, which is 9 in decimal. You can use this example to test your program to ensure it's working correctly. FOR YOUR ASSIGNMENT: Create a program which can, given a 7-bit long input, written in Hamming Code style, do the three following tasks, displaying the results as output. Determine if there's an incorrect bit, and if so, where it is. Display what the CORRECT code should look like (if it needs to be corrected.) Display the decimal form of the message that was sent, after any needed correction. Remember, when using Hamming code, only the 3, 5, 6, and 7 slots comprise the actual message! For your input, use the following five inputs, and show the results of each. 1101010 0010111 1010101 1001001 0110011 Please don't forget that you can use the sample of Hamming Code provided to test your code for correctness

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago