Write a program which calculates interest for 1 year. Prompt the user for a dollar amount and an interest rate, then output the interest earned and new principal. Use the double data type throughout the program.