Dessign the function @valor_presente(I, r)@ that calculates the present value of an investment represented as a list of monthly payments and a monthly interest rate .
Example: John asks Paul to rent his vehicle for 3 months for a monthly payment of 5000 euros (the first payment is today). Once this time has passed, he will buy the vehicle for 45000 euros. John’s opportunity cost is 5% monthly. ¿Which is the present value of the project?
John’s investment is: . The opportunity cost is . The @valor_presente(I, r)@ is
In general, if the investment is given by , the present value is
Author: InfBesos
Generation: 2026-01-25T19:23:14.698Z
© Jutge.org, 2006–2026.
https://jutge.org