public class FinanceNpvEx1 extends Object
Computes the net present value of a lottery prize using the stream of payments as input.
A lady wins a $10 million lottery. The money is to be paid out at the end of each year in $500,000 payments for 20 years. The current treasury bill rate of 6% is used as the discount rate. Here, the net present value of her prize is computed.Constructor and Description |
---|
FinanceNpvEx1() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.