[an error occurred while processing this directive]
You have been asked to help the X team by decoding these images and displaying them on the crude but serviceable non-graphical computers to which you have access.
Before dying of unknown causes, the radio telescope technician who received the mysterious broadcast revealed the following facts:
Since your project is not well supported by the Agency's upper management, you will have to make do with whatever tools you have available. These include a VT100 terminal which has no capability to display graphical images. You do, however, have a C compiler and, luckily, have just then begun to learn how to use it in your studies at UMBC. You could write a program to interpret the images and display them crudely on the terminal using "ASCII graphics".
You can translate the pixel values into printable characters using the following conversion chart:
In addition to printing each image, your program must also calculate and display for each image (1) the total number of pixels in the image, (2) the number of rows of pixels in the image, and (3) the average intensity of the pixels.
To run your program using one of the data files, for this project as input, use the following command: