Kindly see the attached files.
This program can run on linux platform only.
Attached is the source code written in python 2.7
To run, execute following commands in Ubuntu:
-
sudo apt-get install python-pip python-dev build-essential libjpeg-dev imagemagick
-
sudo pip install --upgrade pip
-
sudo pip install pillow
-
python fract.py
Image attached is output of program for the input.txt file.
Tarun Kumar
14114068