09-Feb-2024 18:05:56 insurance_simulation_test(): MATLAB/Octave version 5.2.0 Simulate term life insurance. insurance_simulation_test1() Observe a single case year by year. Customer age: 25 Number of years of coverage 40 Annual payment = 500 Company benefit for death within term 100000 Annual interest rate is 0.04 Bracket P(Death) Pay Bank Benefit [25,26] 0.0018 500 500 0 [26,27] 0.0018 1000 1020 0 [27,28] 0.0018 1500 1561 0 [28,29] 0.0018 2000 2123 0 [29,30] 0.0018 2500 2708 0 [30,31] 0.0018 3000 3316 100000 insurance_simulation_test2() Average many instances of a single case. The case was simulated 1000 times. Number of (covered) deaths 237 Average customer payments = 18559 Average company payments = 23700 Average bank account value = 47512.8 insurance_simulation_test(): Normal end of execution. 09-Feb-2024 18:06:00