Inputs: Use 2 inputs: cash flow vector, interest rate.
Use values: cash flow = (-10, 2, 4, 5, 9, 6), interest rate = 12%.
Assume that cash flows start at t=0 and go on year by year.
Output: Produce a table containing years, cash flows,
PV of cash flows, and a summary with NPV, PI, and Payback.
(Rstudio)