Question: i need to write a program in C to generate some data, then add parity bits, and print the results. Assume each piece of data

i need to write a program in C 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 a two-dimensional array of 9 columns and 12 rows.

Fill the arrays first 8 columns randomly with 1 and 0 by using rand()%2

Then compute parity bit for each row. Print data and parity bit.

11011000 0

01011110 1 it should look like that but as 12 rows in total

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!