Implement a visualisation of your bums.py
in Python. Your program, bumsv.py
, takes a sequence of at most 25 integers, one per line, from a file bumsv-input.txt
, ignoring whitespace. It generates a Latex file anim.tex
and compiles it to anim.pdf
by invoking pdflatex
, producing a pdf slide show. One may then view the animation of the sorting algorithm by moving forwards and backwards in the anim.pdf
slide deck.
No extra course credit is awarded for the completion of the optional part.
What to do
Write and debug your own bumsv.py
, starting from your own bums.py
(no template supplied).
Ensure your code passes pycodestyle
. (Mandatory for the starred tick.)
Run it on the supplied bumsv-input.txt
, generating anim.tex
and anim.pdf
.
Upload to Moodle your bumsv.py
, and the anim.tex
and anim.pdf
it generated (but not any other files).
There is no autotester to help you debug your code.