Simple program to calculate compound interest using BigDecimal . From "Java How To Program, 10, Early Objects" - Chapter 8.