Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help 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)

help

image text in transcribed

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: Variable Legend S = Specified Future Amount D = Initial Deposit R = Interest Rate A = Actual Future Amount Y = Number of Years Use this formula to calculate A: A = D * (1 + R/100)^y The Actual Future Amount (A) is = 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 (i.e., "repetition" or "iteration") in your program. Using the example inputs shown below, create a loop termination table with appropriate values to demonstrate that your algorithm uses a correct loop termination condition. Include this table with your flowchart in your answer. Example inputs for Loop Termination Table: 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: Variable Legend S = Specified Future Amount D = Initial Deposit R = Interest Rate A = Actual Future Amount Y = Number of Years Use this formula to calculate A: A = D * (1 + R/100)^y The Actual Future Amount (A) is = 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 (i.e., "repetition" or "iteration") in your program. Using the example inputs shown below, create a loop termination table with appropriate values to demonstrate that your algorithm uses a correct loop termination condition. Include this table with your flowchart in your answer. Example inputs for Loop Termination Table

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

More Books

Students also viewed these Databases questions

Question

What is the primary opportunity for new firms in a mature industry?

Answered: 1 week ago