Unit test

 

Unit test

Problem

The average daily balance is the mean of the balance in an account at the end of each day in a month. The following table gives the dates and amounts of the transactions in Elliott's account in June.
Day of JuneTransaction typeTransaction amount (in dollars)
1Starting balance1223
10Deposit615
15Withdrawalminus, 63
22Withdrawalminus, 120
There are 30 days in June.
What is the average daily balance of Elliott's account for the month of June?
 dollars
Hint #11 / 4
Let's start by figuring out what the new balance is each time the balance changes, and the number of days with that balance. Then we can take the mean of those balances.
Hint #22 / 4
Day of JuneTransaction amount (in dollars)New balanceDays with that balance
11223122310, minus, 1, equals, 9
106151223, plus, 615, equals, 183815, minus, 10, equals, 5
15minus, 631838, plus, left parenthesis, minus, 63, right parenthesis, equals, 177522, minus, 15, equals, 7
22minus, 1201775, plus, left parenthesis, minus, 120, right parenthesis, equals, 165531, minus, 22, equals, 9
Hint #33 / 4
To find the mean, we first sum all of the daily balances. Then we divide by 30, since there are 30 days in June.
\begin{aligned}&\phantom{=}\dfrac{1223 \times 9 + 1838 \times 5 + 1775 \times 7 + 1655 \times 9}{30} \\\\ &=\dfrac{11{,}007 + 9190 + 12{,}425 + 14{,}895}{30} \\\\ &=\dfrac{47{,}517}{30} \\\\ &=1583.90 \end{aligned}
Hint #44 / 4
The average daily balance of Elliott's account for the month of June is 1583, point, 90 dollars.

Comments