float balance = (float) 0.0;
Saying (float) is unnecessary here, the compiler knows you are declaring a float.
The 'continue' statements are unnecessary, as far as I know, so you should consider that. (It isn't your problem, I don't think)
However, one way to limit down your problem is to add some print statements. For example, did you check to make sure you're reading in what the user entered correctly? That is a big step towards figuring out where your problem is. Try it and tell me what you get
Reputation Points: 874
Solved Threads: 352
Posting Maven
Offline 2,758 posts
since Sep 2008