Introduction
In the basic finance tutorials, we covered how to compute NPV and IRR for cash flows. The question regarding these two is how do we use them to decide if we do a project? Generally they give the same decision, but can differ in cases.
Challenge
Use the new cash flow class to create an NPV function that takes an array of cash flows and returns the net present value.