Store Credit problem from programmingpraxis.com