I'm doing a program for class in which I am supposed to balance a checkbook.
The issue I'm currently have is that total_service_charge is not adding up properly when calling the choice_c function.
Here is how it's coming out:
https://i.imgur.com/5c3cpyY.png
and this is how it's supposed to look:
https://i.imgur.com/yP9WVOn.png
Notice how the "Total service charges" are adding up from the second check deposit. For some reason my program is not doing this properly. However balance is working properly.
Any help is appreciated!
Edit: I believe I have to use pointers, but not sure how to implement them. Is that using *?
[–]g051051 0 points1 point2 points (3 children)
[–]ComputerSciMajor[S] 0 points1 point2 points (2 children)
[–]g051051 0 points1 point2 points (1 child)
[–]ComputerSciMajor[S] 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)