- The file (https://drive.google.com/file/d/1ZtARLh3yxyvd90Zs0…) contains an unknown number of int values stored in binary. Download the file. Open it, determine the file size and number of int values that it contains.
- Allocate memory dynamically to hold the int data from the binary file.
- Read the binary file into the dynamically allocated memory.
- Display each int value in decimal, with a width of 12, six to a line.
- Display each int value in hexadecimal, with a width of 12, six to a line.
- Extract the 3rd byte of each int and display it in hexadecimal, with a width of 6, twelve to a line.
- Reverse the nibbles of the resulting byte and display it in hexadecimal, with a width of 6, twelve to a line.
- Interpret each result from step 7 as a BCD (binary coded decimal) value and add 32 to each. Cast each result to a char and display the secret message.
- Clean up your mess.
Sample output attached
0 comments