Advanced C Programming Spring 2004 Excercise 8 (Splitting a word into two bytes using different methods) For many devices some information (for example a 16 bit integer number) has to be transmitted in two separate parts: for example first the low byte and after that the high byte. On the other hand a device can send a 16 bit integer as two separate parts in similar way. In the class we studied several methods to construct a word from two bytes. Use now the same basic principles "to another direction". This means that you have to split a word into two bytes. Write a program which reads from the keyboard a 16 bit word and splits it into two 8 bit bytes (value between 0 - 255). There are many different techniques you can use to solve this problem. Now you have to use 4 methods examined in the class. The methods need to be applied to other direction now. Write only one program. Display results from every method separately on the screen. The four techniques, you have to use are: 1) "Basic programmer's way". 2) Union data type is used. 3) Access bytes directly by using pointers and type casting to BYTE (without any additional types like union or struct). 4) write a macro (bit-wise operations shifting, masking ...).