Post your code between the code tags [_CODE_] [_/_CODE_] (with no underscores).
mike_2000_17
Posting Virtuoso
2,139 posts since Jul 2010
Reputation Points: 1,634
Solved Threads: 457
1) Everywhere you use cin, you are SETTING the value instead of displaying it.
2) Missing semi-colon on lines 25 and 34
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
For starters, when dealing with money, a transaction is almost never an even-dollar amount (or whatever unit of currency you use). You should deal exclusively in floating-point data types (i.e. "float" or "double") and avoid integer data types.
Second, your equation for calculating a withdrawal (Line 25) actually gives the user a $2.50 bonus/credit to their account, rather than charging a $2.50 fee. Your equation should be more like this: [tex]newb = currentb - (withdraw + 2.50)[/tex]
Correct those issues, then use the tips to see if you can correct your other issues.
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393