Questions: On the following checking account record, enter the figures and add or subtract them to keep the running total correct.
Transcript text: On the following checking account record, enter the figures and add or subtract them to keep the running total correct.
Solution
Solution Steps
To solve this problem, we need to simulate a checking account record by iterating through a list of transactions. Each transaction will either add to or subtract from the current balance. We will maintain a running total that updates with each transaction.
Step 1: Initial Balance
Let the initial balance be \( B_0 = 0 \).
Step 2: Transactions
We have the following transactions:
Deposit: \( +100 \)
Withdrawal: \( -20 \)
Deposit: \( +50 \)
Withdrawal: \( -10 \)
Withdrawal: \( -30 \)
Step 3: Calculate Running Total
We will calculate the running total after each transaction:
After the first transaction:
\[
B_1 = B_0 + 100 = 0 + 100 = 100
\]
After the second transaction:
\[
B_2 = B_1 - 20 = 100 - 20 = 80
\]
After the third transaction:
\[
B_3 = B_2 + 50 = 80 + 50 = 130
\]
After the fourth transaction:
\[
B_4 = B_3 - 10 = 130 - 10 = 120
\]
After the fifth transaction:
\[
B_5 = B_4 - 30 = 120 - 30 = 90
\]