Write the algorithm to compute compound interest

Assignment Help Basic Computer Science
Reference no: EM13844379

If the present value of an account is $1000 and the interest rate is 5%, then after one year, the account will increase by $50 (5% of $1000). In the second year, the interest applies to all $1050, so the account will increase by $52.50 (5% of $1050). Getting future interest on past interest is called compound interest.

A general formula for future value is: Future Value = P*(1 + R/100)Y Where P is the present value, R is the interest rate and Y is the number of years. You need not write the algorithm to compute compound interest because a module for it is available online. It has three inputs - present value, interest rate and number of years - and one output: future value.

Using this module, write an algorithm to print the balance in a savings account at the end of every decade over a 100-year span. Your algorithm is given the initial balance and the interest rate. See the note below about how to draw a "black box" on your homework submission.

Reference no: EM13844379

Questions Cloud

Treat the spheres as point charges and ignore gravity : A small sphere with mass 9.00 μg and charge -4.30μC is moving in a circular orbit around a stationary sphere that has charge +7.50μC.If the speed of the small sphere is v = 5900 m/s , what is the radius of its orbit? Treat the spheres as point charge..
What is an iteration structure? : What is an iteration structure?
A child slides down a slide with a 24 degree incline : A child slides down a slide with a 24 degree incline, and at the bottom her speed is precisely two-fifths what it would have been if the slide had been frictionless. Calculate the coefficient of kinetic friction between the slide and the child.
What is the final speed of the crate : An 80kg crate, starting from rest, is pulled across a floor with a constant horizontal force of 350N. For the first 12m the floor is frictionless, and for the next 16m the coefficient of kinetic friction is .44. What is the final speed of the crate? ..
Write the algorithm to compute compound interest : write the algorithm to compute compound interest
What is the speed of the cart after 7.0 seconds : A 2.00 kilogram cart is moving at a rate of 4.0 meters per second when a continual force of 16.0 newtons begins to act on the cart in the direction of motion. What is the speed of the cart after 7.0 seconds?
Explain how much silver was initially present : Silver is reacted with excess mercury (II) chloride, producing a solid silver chloride precipitate. If the actual yield of 25.5 g silver chloride represents a 77% yield, how much silver was initially present.
A diver springs upward from a diving board : A diver springs upward from a diving board. at instant she contacts the water , her speed is 8.90m/s. and her body is extended at an angle7.50degrees. with respect to the horizontal surface of the water, at this instant her vertical displacement is -..
What about the literary influences on chris : Explain. What about the literary influences on Chris; how do these influence Chris' (or our own) conception of the wild? What do you make of different people's assessment or evaluation of Chris & his trip, e.g., Sherry Simpson "I Want to Ride on..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describe a scenario in which a network sniffer is warranted

Describe a scenario in which a network sniffer is warranted

  Efficiency and effectiveness metrics

Choose any of the Perspective boxes in this chapter or the opening case. Then, identify and describe at least seven metrics that could be used to measure the success of the IT systems in your chosen example. For each metric, categorize it as eit..

  Are robots remotely controlled by humans really robots

Are robots remotely controlled by humans really robots?

  Compute probability distribution and conditional probability

Write down solution this question in cryptographic. Assume encryption function is defined compute probability distribution and conditional probability distribution.

  Code skeleton to declare a class named date

Complete the following code skeleton to declare a class named Date. The class should contain variables and functions to store and retrieve a data in the form 4/2/2012.

  Changing conditions significant influence on way health

What changing conditions do you think have the most significant influence on way the health information is managed today? Why?

  How would you show an input mask for a serial number

In MS Access, how would you show an input mask for a serial number that had 5 letters followed by 7 numbers? No dashes or any other characters.

  Create a view that lists the isbn and title for each book

Create a view that lists the ISBN and title for each book in inventory along with the name and phone number of the person to contact if the book needs to be reordered. Name the view REORDERINFO

  Finding slowest clock rate used and not lose any data

What is the slowest clock rate that could be used and not lose any data? Assume that the number of instructions to be processed for an interrupt is constant.

  Examine and analyze the principles of inheritance

Examine and analyze the principles of inheritance. Use the Library to get started on finding resources.

  Discuss the fundamental advantages and disadvantages

Companies that currently use expert systems. Next, discuss the fundamental advantages and disadvantages of using expert systems instead of human expertise within the companies that you have selected. Provide a rationale to support your response..

  Understand the concept of bootstrapping

It is essential for any entrepreneur to understand the concept of bootstrapping. Bootstrapping is doing anything and everything to conserve capital for only the things that generate revenue.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd