This:

scanf("%f", dollars);
should have been:

scanf("%f", &dollars);
If you had compiled at a higher warning level, it is likely that your compiler would have warned you about this.

By the...