My program always gives me an output of 0.0, what's wrong with it?

Printable View