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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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