C program to generate two filtered images using mean and median filters for an input image.

Use Tiny C or visual studio only.
C program needs to do the following basically:
 Get input value (image file name) above.  Perform ‘ReadPPM’ for an input image.  Perform ‘CreatPPM’ for two output images.  Initialize all pixel values of two output images as white (255),  Perform a convolution with 3 x 3 mean filter for an input image and generate a mean filtered image as an output as discussed in the slides.  Perform a convolution with 3 x 3 median filter for an input image and generate a median filtered image as an output as discussed in the slides.  Perform ‘WritePPM’ for the two output images.

Please check the attached files.