PRACTICAL SET 1>> AIM-->. TO STUDY DIFFERENT TYPES OF TOPOLOGIES AND IMPLEMENT IN CISCO PACKET TRACER: ANS---> 1>> BUS TOPOLOGY 2>> STAR TOPOLOGY 3>> RING TOPOLOGY 4>> MESH TOPOLOGY 5>> TREE TOPOLOGY 6>> HYBRID TOPOLOGY PRACTICAL SET 2 >>. NO NEED TO WRITE PRACTICAL SET 3 >>. NO NEED TO WRITE PRACTICAL SET 4 >>. NO NEED TO WRITE PRACTICAL SET 5>> AIM--> WRITE A PROGRAM TO IMPLEMENT HAMMING CODE C- PRACTICAL CODE : #include <stdio.h> // Encoding Function for (7,4) Hamming Code void hamming_encode(int data, int *codeword) { // Ensure the input data is a 4-bit value (0-15) if (data < 0 || data > 15) { printf("Input data must be a 4-bit value between 0 and 15.\n"); return; } // Initialize the parity bits int p1 = (data & 1) ^ ((data >> 1) & 1) ^ ((data >> 3) & 1); int p2 = (data & 1) ^ ((data >> 2) &