Skip to content

Updated CompundInterest.py and added readme.md #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Calculate Compound Interest/calculateCompoundInterest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}")
5 changes: 5 additions & 0 deletions Calculate Compound Interest/readme.md
Original file line number Diff line number Diff line change
@@ -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)