Westonci.ca is the premier destination for reliable answers to your questions, provided by a community of experts. Connect with a community of experts ready to help you find solutions to your questions quickly and accurately. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our 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
Visit us again for up-to-date and reliable answers. We're always ready to assist you with your informational needs. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Thank you for using Westonci.ca. Come back for more in-depth answers to all your queries.