1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
trapecia [35]
1 year ago
9

write an algorithm to settle the following question: a bank account starts out with $10,000. interest is compounded monthly at 6

percent per year (0.5 percent per month). every month, $500 is withdrawn to meet college expenses. after how many years is the account depleted?
Computers and Technology
1 answer:
svp [43]1 year ago
7 0

Using the knowledge in computational language in python it is possible to write a code that write an algorithm to settle the following question.

<h3>Writting the code:</h3>

<em>original = float(raw_input("Enter initial balance: "))</em>

<em>interest = float(raw_input("Enter promised return: "))</em>

<em>expenses = float(raw_input("Enter monthly expenses: "))</em>

<em />

<em>interest = interest / 100 / 12</em>

<em>month = 0</em>

<em>balance = original</em>

<em />

<em>if balance * interest - expenses >= 0:</em>

<em>print "You don't need to worry."</em>

<em>else:</em>

<em>while balance + balance * interest - expenses >= 0: # negation of the if condition</em>

<em>balance = balance + interest * balance # in one month</em>

<em>balance = balance - expenses</em>

<em>month = month + 1</em>

<em>print month, balance</em>

<em />

<em>print month / 12, "years and", month % 12, "months"</em>

See  more about python at brainly.com/question/18502436

#SPJ1

You might be interested in
Suppose you have four 500 MB hard drives plus one 2 GB flash drive. How many GB of capacity is this overall?
Sidana [21]

You would have a total of 2.5 GB of capacity.

A gigabyte consists of 1000 megabytes, so 500 megabytes make half of a gigabyte, or 0.5 gigabytes.

So 2GB + 0.5GB = 2.5GB

4 0
3 years ago
What console can be used to enable disable start or stop a service
umka21 [38]
That would be msconfig!
5 0
2 years ago
What is true about the dilation?
madreJ [45]

Hey hey hey! I recently took the test and the answer is D | (• ◡•)|

7 0
2 years ago
Read 2 more answers
What are the six command groups in powerpoint
DiKsa [7]

Answer:

Clipboard, Slides, Font, Paragraph, Drawing, and Editing

3 0
3 years ago
Which piece of code results in the following? Italics
andriy [413]
Italics

Italics

Italics

Italics


7 0
3 years ago
Other questions:
  • Dana downloads music into her computers random access memory, or ram, without authorization. this is?
    15·1 answer
  • wHAT ARE THE 5 LAYERS in the internet protocol stack andwhat are the principal responsibilities of eack of theselayers.?
    12·1 answer
  • Write a program to read data from a file named problem 2. ext. This file has three exams data (floating point data) in three col
    11·1 answer
  • A _____ defines what must take place, not how it will be accomplished.​
    12·1 answer
  • What does the binary odometer show about representing large numbers?
    8·1 answer
  • As u type where does excel display the entry
    10·1 answer
  • What of the following is not a benefit of active listening
    8·2 answers
  • IT specialists must display technical expertise and collaborative proficiency in the workplace. Select the IT specialist who dem
    7·1 answer
  • A palindrome is a string that reads the same from left to right and from right to left. Design an algorithm to find the minimum
    15·1 answer
  • The three main objectives of information security are
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!