Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
The print function
Variables
Math in Python
The input function
Summary
21. Question

Instruction

Your task is to write an interactive program!

Exercise

Write a program that will tell the user how much they can earn on a deposit when compound interest is applied. If you don't know anything about compound interest, follow the instruction below:

Ask the user for the following information: initial_amount, interest_rate, annual compounding_frequency, time – expressed in years.

Then, calculate the final_amount as:

\text{initial\_amount} \cdot \Big(1 + \frac{\text{interest\_rate}}{100 \cdot \text{compounding\_frequency}}\Big)^{\text{compounding\_frequency} \cdot \text{time}}

Show the following sentence: At the end of the period, you will have {final_amount}

We've already prepared the inputs in the Code Editor. Implement the formula and show the sentence.