The user selects a character that is represented by a double (cost).
The user then selects an int which represents another double (deposit).
Based off which character the user choose determines the cost.
Based off which int the user selected determines the deposit.
I must take the given deposit and minus it from the cost.
The then choose another int to represent a different deposit, and minus it from cost.
This continues until the deposit exceeds or equals the cost.
And this has me very, very confused.
I made a if/else statement for the characters, and gave each character a cost. (the menu)
I have then made another menu with a switch for the integers and assigned them to their deposits.
How do I connect the two to perform the action above?
I simply don't know where to start.
I know i need a loop; and am thinking a do-while loop.
But frankly... would like an example, or something to go by.
Thank you for your time.