Having trouble following instructions

..
Last edited on
Do you have a general idea about how credit cards work? You may want to research a little about credit cards to understand the terminology in this question.
No, but I just need a general example for both options about how it works. I know the code, just cant figure out the algorithm.
I know the code, just cant figure out the algorithm.

What?
Ok, so for example.

So, if I enter the option to enter debit...say 30 , 20 ,and 10. The total is 60. Then would I have to prompt the user to then enter the credit values? Like 20 and 10. Total is 30. Then calculate the balance which is 30?

And if I enter the option to enter credit, then I would enter credit first, then debit values, then display the balance?
So now is the point where you post your code
Topic archived. No new replies allowed.