Question: Write a program to generate some data, then add parity bits, and print the results. Assume each piece of data is one byte, or 8
Write a program to generate some data, then add parity bits, and print the results. Assume each piece of data is one byte, or 8 bits. So you need space for 9 bits. You need an array of 9 columns and 12 rows as the example. Fill the array's first 8 columns randomly with 1 and Oo. [rand () %2 generates 0 or 1] Then compute parity bit for each row
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
