Hi there, I'd be happy to do this for you. I'm a Lecturer in Artificial Intelligence, and part of my PhD was on information gain so this is amazingly right up my street! :) Does your program need to calculate anything else, or provide any other summary statistics? I'm happy to add whatever is needed.
Please get in touch if you'd like to talk about specifics!
Thanks!