Hints 17
Hints 17
1. The formula =if(PctLastYear<0, 5000 ,0) gives the amount invested each year, if you replace
PctLastYear with the cell containing the percentage increase in the last year. Using this for
the investment amount, you can proceed as in Unit 14 to see how well the buy-on-the-dips
strategy works. For comparison purposes, you should use a separate column that rises each
year based on the same random percentages, with the initial investment set to the total of all
investments made using buy-on-the-dips.
2. The mortgage calculations are the same as in Unit 10. Unit 6 shows how to convert the 3
percent annual inflation rate to a monthly rate. Then just apply this rate to the mortgage
payments rather than using a fixed amount.
3. Calculate the service fee with if(balance<2000,5,0), replacing balance with the cell
containing your month-end balance. You’ll also need to convert the APY to a monthly
interest rate, using the approach from Question 5 of Unit 5. Then proceed as in Question 3 of
Unit 2.
4. Calculate percentage increases using the direct method introduced in Unit 6.
5. Use an “if” to set the lower limit of the percentage change: =if(price<=100, -10, -20). Note
that <= is the computer equivalent for ≤. When you have calculated the lower limit, you can
use it in a formula to get a random percentage: =(rand()*30+lower)%. We’re relying on the
fact here that the size of the range is always 30. Also, as in the hint for Question 1, we’re
using italics to stand for the cell that contains the corresponding value.