I am trying to make a ledger of some sort. The ledger will prompt the user for a beginning balance and then three transactions following that using the letters "D" and "W" for deposit and withdraw respectively.
The input should look like:
Please enter your beginning balance: $200.00
Please enter the first transaction: D 1000.50
Please enter the second transaction: W 400.00
Please enter the third transaction: D 1505.50
Then I need to figure out how to calculate these running totals but that is where I am completely stumped. How do I go about do this? I also don't understand how I will make the program know that D will make an addition and W will subract. Here is my code so far: