Special5pointsbonuswillbegiventothoseofyouwho

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ber of years you live after retirement. otrtr_rwhrtsw Find the maximal expenses you can withdraw each year from your retirement fund, such that by your death, you will have a positive amount in your bank. You may use binary search in order to find the maximal expenses. In order not to continue forever you should stop when your expenses result in a positive value which is smaller than epsilon. Special 5 points bonus will be given to those of you who instead of using binary search will use arithmetics and will return a value that will leave your account with 0 in the end of your life. Specify in your README which method did you use. Your function should return the maximal expenses value you found. Complete: lv_ieakn(aay ae r_eiegot_ae, ielk__igslr,sv,pertr_rwhrts ps_eiegot_ae,esln otrtr_rwhrts pio) Write your code in the appropriate place in the ex4.py template. To test your function, compare it with the school solution. Assignment 2 Implement b b l _ o t 2 d v l e In this assignment, you will implement a function that ubesr_n_au. receives a list of...
View Full Document

This document was uploaded on 03/20/2014 for the course CMSC 67101 at Hebrew University of Jerusalem.

Ask a homework question - tutors are online