I have been working on this program for my class and I have everything working fine it seems up until I get my New Balance output. What I get for the output is below.
Date Account Type Amount New Balance
06/19 9858-5420-3025-7452 P 5500.00 -2694.35
06/19 1111-1111-1111-1111 C 430.00 -2264.35
06/20 7307-8304-0929-4295 C 36.45 -2227.90
06/20 1132-2648-4476-0945 P 130.00 -2357.90
06/20 5540-8530-4034-5532 C 275.23 -2082.67
06/20 7307-8304-0929-4295 P 250.00 -2332.67
This is what my output is suppose to look like.
Transaction Report
Date Account Type Amount New Balance
06/19 9858-5420-3025-7452 P 5500.00 5843.82
06/19 1111-1111-1111-1111 C 430.00 *** Invalid account number ***
06/20 7307-8304-0929-4295 C 36.45 243.90
06/20 1132-2648-4476-0945 P 130.00 2675.65
06/20 5540-8530-4034-5532 C 275.23 *** Credit limit exceeded ***
06/20 7307-8304-0929-4295 P 250.00 6.10CR
I went ahead and attached the header and .cpp files to this post, the only thing I can't give you is the input files which I know makes it hard to help but they are on our unix accounts and there is no other way for me to get it.
Here are the links to my assignment as well:
http://www.cs.niu.edu/~mcmahon/cs241/Assign/as2241m09.html
http://www.cs.niu.edu/~mcmahon/cs241/Assign/output2.txt
Any help on this would be greatly appreciated, thanks for your time in advance.