Question: I want to write a c program that will do the following user enter 1) enter years, 2) enter rate of growth, 3) yearly contribution.

I want to write a c program that will do the following user enter 1) enter years, 2) enter rate of growth, 3) yearly contribution. This program can be modified; however it should allow a user to enter different values each gcc compile. Also, code need to be supported by C not C++

For example: if years (y) = 4, yearly interest rate (r) = 0.15, yearly contribution (c) = 6000, x = ?

logic:

y * r = x + c

(0) * (0.15) = 0 + 6000

6000 * (0.15) = 900 + 60000

6900 * (0.15) = 7200 + 6000

year 4 =13935

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!