Solution to an ACSL problem. It's due for an Applied Math class.