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

  Draw an rea diagram-data modeling and database design

Data modeling and database design,  Draw an REA Diagram,  Draw an REA diagram for Sparky’s revenue cycle only. Be sure to include cardinalities. State any assumptions you had to make.

  Describe the key characteristics of a whistleblower

Describe the key characteristics of a whistleblower, and briefly summarize one (1) researched instance of whistleblowing in one (1) publicly traded company within the last 12 months. Include the details of the issue that the whistleblower reporte..

  Create supply chain management system

What are some of the reasons that RMO decided to build supply chain management system previous to customer support system?

  Cloud computing

Many organizations have now adopted or begun to offer cloud computing. This type of computing has advantages and disadvantages that may vary from organization to organization.

  Create an instance variable credit limit to indicate

Create another sub class CreditCustomer. Create an instance variable credit limit to indicate the maximum limit ($500). Credit customers get a markup of 2% on the order price.

  Finding a negative cycle in the graph of o

1. Finding a negative cycle in the graph of O (NM) [TeX] 2. Finding Euler Euler path or cycle of O (M) 3. Checking on the a cyclic graph and finding the cycle of O (M) All of these algorithm should be well explained and worth showing.

  Intro internet communication and development

From the Internet Detective, what factors should you consider when evaluating a web-based source for academic research?What characterizes the stage of internet development following Web 2.0?

  What kind of watermarking mechanism

What kind of watermarking mechanism can you propose to protect an image copyright?

  Secure data access and encryption of a patientdatabase

OverviewIn this lab, you implemented policies that map to the Sarbanes-Oxley Act (SOX), the PaymentCard Industry Data Security Standard (PCI-DSS), and the Health Insurance Portability andAccountability Act (HIPAA). You ensured secure data acce..

  Instigation of the student misconduct process

You should collect interesting and relevant resources that address the task - resources should be substantial and contain information directly pertinent to the task.

  Consumer demand helped managers develop the appropriate

In each of the following examples, describe how the information given about consumer demand helped managers develop the appropriate strategies to increase profitability and how this information was obtained: a.Auto industry executives have begun to f..

  Database life cycle

Database Life Cycle

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