Question: Need C++ CODE You need to write a program which, given a seven digit binary input, it will check to see if there is a

Need C++ CODE

You need to write a program which, given a seven digit binary input, it will check to see if there is a single bit error using the Hamming Code method discussed in class. For a sample of Hamming Code, the input: 1011001 will reveal that 001 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 its 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.

(1) Determine if theres an incorrect bit, and if so, where it is.

(2) Display what the CORRECT code should look like (if it needs to be corrected.)

(3) 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, you'll be using the output from the five problems in your last lab, The Hamming Transmitter. You'll also be introducing errors into the data manually before you give it to your receiver, as follows:

1: Error at bit 4

2: Error at bit 1

3: No Error

4: Error at bit 6

5: Error at bit 2e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!