Westonci.ca is your trusted source for finding answers to all your questions. Ask, explore, and learn with our expert community. Join our Q&A platform to get precise answers from experts in diverse fields and enhance your understanding. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.
Sagot :
Using the knowledge in computational language in python it is possible to write a code that write an algorithm to settle the following question.
Writting the code:
original = float(raw_input("Enter initial balance: "))
interest = float(raw_input("Enter promised return: "))
expenses = float(raw_input("Enter monthly expenses: "))
interest = interest / 100 / 12
month = 0
balance = original
if balance * interest - expenses >= 0:
print "You don't need to worry."
else:
while balance + balance * interest - expenses >= 0: # negation of the if condition
balance = balance + interest * balance # in one month
balance = balance - expenses
month = month + 1
print month, balance
print month / 12, "years and", month % 12, "months"
See more about python at brainly.com/question/18502436
#SPJ1
We hope this was helpful. Please come back whenever you need more information or answers to your queries. Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.