Lab 7 (12/04/2023
)
Problems for lab session:
Practicals
Part 1
- Write a function
compressM2N()
that takes a M-bit input and converts it to N-bits based on the following rules:- Take the string (ASCII) of length
M//8
char. and convert to binary - M = 64, N = 56
- Skip every 8-th bit from original M-bit string to get the N-bit number
- Take the string (ASCII) of length