Question: In C++, write a function that models a noisy channel. It takes as input the original 7-bit hamming message. Using a random number generator, it
In C++, write a function that models a noisy channel. It takes as input the original 7-bit hamming message. Using a random number generator, it randomly selects one of the 7 positions to flip. For example, if the original message is 0110011, the noisy channel randomly flips bit 3 causing the new message to become 0100011. As output, the function should return both the flipped message and the bit that was flipped (3 in this case).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
