you have a little problem with this statement in your constructor
long total_cents=(long)money*100;
dollars=total_cents/100;
cents=total_cents%100;

Here's another way.
let say...