I need to create a program where a single character is entered, and then outputted as ASCII code in hexadecimal.
Each bit of the character needs to be examined so all the 1's can be counted. The parity bit most significant needs to be set to 1, if the number of odd bits is odd.
The 8 bit code then needs to be outputted in hexadecimal.
e.g. the output required needs to be or similar
Can anyone point me in the right direction?