Create a form that accepts the principal amount. Create a user-defined function to calculate the compound interest.