Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Jim's Years to Accumulate. Jim often counsels customers at his bank. He needs a computer program that will calculate the number of years (Y)

image text in transcribed
image text in transcribed
3. Jim's Years to Accumulate. Jim often counsels customers at his bank. He needs a computer program that will calculate the number of years (Y) it will take to accumulate a specified future amount (S) of money based on a given initial deposit (D) and specified interest rate (R). Assume interest compounds annually. The number of years (Y) is the number of years required for the actual amount (A) to equal or exceed the specified future amount (S). Here is the variable legend: Use this formula to calculate A: A D * (1 + R/100)^Y The Actual Future Amount (A) is - an Initial Deposit (D) after (Y) years at a Rate (R) Draw a flowchart for an algorithm to produce the answers. Your flowchart should input S, D, and R. The algorithm should output S, D, R, A, and Y. Use looping (ie, "repetition" or "iteration) in your program. In other words, your flowchart should continue looping until the actual balance (A) is equal to or greater than the specified (S) future amount NOTE: there is a faster way to complete this problem that doesn't require looping. However, while it's cool if you can figure that out (it's basically just a matter of using the right formula), that's not the point of this task. We want you to learn how to create a loop with a termination. In addition to creating the flowchart, create a loop termination table with appropriate values (based on the example values below) to demonstrate that your algorithm uses a correct loop termination condition. Example Inputs for Loop Termination Table: S = 1300 D = 1000 R = 10 o S=Specified Future Amount D = Initial Deposit OR=Interest Rate (%) O A= Actual Future Amount o Y = Number of Years

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

How do media shape our thinking?

Answered: 1 week ago

Question

Describe Elizabeths credibilityinitial, derived, and terminal.

Answered: 1 week ago