Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3: write whole program in C language A person deposits Rs. 1000/- in a newly introduced Naya Pakistan investment scheme having 5% profit annually.

Question 3: write whole program in C language A person deposits Rs. 1000/- in a newly introduced Naya Pakistan investment scheme having 5% profit annually. Assuming that all profit is remain deposited in the account, calculate and print the amount of money in his account at the end of each year for 10 years.

Use the following formula for determining these amounts [10] z = i(1+p)n

where

i is the original investment (i.e. the principal)

p is the annual profit rate

n is the number of years

z is the amount on deposit at the end of the nth year.

Sample output

Year Amount on deposit

1 1050.00

2 1102.50

3 1157.63

4 1215.51

5 1276.28

6 1340.10

7 1407.10

8 1477.46

9 1551.33

10 1628.89

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions