Checked out this page on Wikipedia:
http://en.wikipedia.org/wiki/Trajectory_of_a_projectile
I just read halfway down, there are a few derivations for the trajectory of a projectile with air resistance. However, having it be an algebraic equation and not involving calculus, might be a whole different story. Unless of course you are fine with calculus in which case hope that helps!
And it seems as though the "force of air resistance is proportional to the square of the particle's velocity". That might be where you're having problems.
I don't see why you wouldn't be able to program it all into a graphing calculator as a program, though the main issue that I would see is having to set up the firearm and get the exact orientation and angles.
edit: That math isn't all that hard, so if you need help understanding any of it let me know.