diff --git a/Calculate Compound Interest/calculateCompoundInterest.py b/Calculate Compound Interest/calculateCompoundInterest.py index a081393c..7d89a359 100644 --- a/Calculate Compound Interest/calculateCompoundInterest.py +++ b/Calculate Compound Interest/calculateCompoundInterest.py @@ -4,12 +4,12 @@ print('How much money is currently in your account?') principal = float(input('Enter current amount in account: ')) -print ('How much money do you plan on investin monthly?') +print ('How much money do you plan on investing monthly?') monthly_invest = float(input('Enter amount: ')) print ('What do you estimate will be the yearly interest of this investment?') interest = float(input ('Enter interest in decimal numbers (10% = 0.1): ')) -print(' ' ) +print(' ') monthly_invest = monthly_invest * 12 final_amount = 0 @@ -20,4 +20,4 @@ final_amount = (final_amount + monthly_invest) * (1 + interest) -print("This is how much money you would have in your account after {} years: ".format (years) + str(final_amount)) +print(f"This is how much money you would have in your account after {years} years: {final_amount}") diff --git a/Calculate Compound Interest/readme.md b/Calculate Compound Interest/readme.md new file mode 100644 index 00000000..a09b9fad --- /dev/null +++ b/Calculate Compound Interest/readme.md @@ -0,0 +1,5 @@ +# Calulate Compound Interest +This calculates the compound interest and shows the final amount at the end of term. +# Author-Unknown +# Edited By- +Aryan-->(https://github.com/Code-Builder-io) \ No newline at end of file