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]
2 years 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]2 years 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
Which types of computers are used by large businesses
aniked [119]

answer:

Mainframe computers are used by large companies and organisations to perform critical tasks that involve bulk data processing like transaction processing, census information, statistical data and so on. They consist of extensive input and output facilities, are very stable and dependable and handle millions of transactions every day

Explanation:

4 0
3 years ago
.Write a MATLAB script that VECTORIZES (eliminates the loop) the following code. (4points)
gladu [14]

Answer:

Explanation:

try

clc

clear

close all

x=linspace(0,2*pi,7);

z=cos(pi.*x./3)

% the output on mine is to 4 decimals so it looks a bit different than what the output on your example is , but, I think if you change the format to decimal 2 it will look the same  :)

4 0
2 years ago
Please list the computer data hierarchy from bit to database
vladimir2022 [97]

Answer:

 Data hierarchy is basically define to the data which is organized in the systematic manner. The main concept of the data hierarchy is to check the basic structure of the data. It basically involve the fields records and files for the data organization.

The following is the list of the computer data hierarchy from nit to address are:

1) Bit: It is the smallest unit of the data.

2) Field: The collection of all the characters in the data is known as field.

3) Record: The collection of the different fields is known as records.

4) File: The collection of various types of records in the database is known as file.

8 0
3 years ago
Give state diagrams of DFAs that recognize the following languages.
k0ka [10]

Answer:

Following is attached the solution of each part step-by-step. I hope it will help you!

Explanation:

6 0
3 years ago
Power point 2016 which chart element provides the boundaries of the graphic?
SVEN [57.7K]
D. (chart elemments) - correct answer
8 0
3 years ago
Other questions:
  • _____ is two or more connected computers.
    8·1 answer
  • A(n) file management system is a program that allows the creation of individual database tables, each of which is stored in its
    5·1 answer
  • Example: An amount of $1,500.00 is deposited in a bank paying an annual interest rate of 4.3%, compounded quarterly. What is the
    5·1 answer
  • PLEASE HELP POWER POINT:
    8·2 answers
  • The ____ aggregate function finds the largest value
    10·1 answer
  • Write four overloaded methods called randomize. Each method will return a random number based on the parameters that it receives
    5·2 answers
  • Write a structured algorithm that prompts the
    9·1 answer
  • What aspect should you consider before adding pictures to a document?
    6·1 answer
  • Simple example of hybrid computer​
    7·2 answers
  • Computers that are joined together are called networks true or false
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!