Sunday, April 24, 2011

Crickexams

So, good old SLIIT is going through exam season these days. The common rooms are crowded, and the staircases are full of last minute crammers with books and papers lying all around. :) My exams so far have had mixed results, PS was a miss and SPD was a definite hit.

So, remember me saying we might have World Cup coverage around these parts? :D Yeah. Well, the closest I got to the World Cup is when I went to watch the Kenya vs. Sri Lanka match on March 1 with my mates. But fear not, this post is sort of related to cricket.

I helped out a friend of mine studying in Australia with his programming assignment. It was a neat little C program that read from a file, did some basic data manipulation and graphed the results. After being stuck for so long doing non-programming things at uni (Ugh, I thought this degree was about learning to code. How wrong I was...) it was a treat to write some good code and it inspired me to write this follow up program. It's a tiny piece of code that graphs runs against overs, like those Manhattans that they show during cricket matches. The code can be found here.

Here's what the output looks like: