q1.
A person invest 10000 in saving account yielding 5% interest.
Assuming that all interest is left on deposit.
Calculate & print the amount of money in the account at the year end of each year for
10 years.Use the following formula to determine the amounts.
a=p(1+r)^n
p-original amount invested
r-annual interest rate
n-numbers of years
a-amount on deposited at end of the n year
(required : Java program & answers)
q2.
Write Java program to print following patterns.
(a)
*
**
***
****
*****
******
*******
********
*********
**********
(b)
**********
*********
********
*******
******
*****
****
***
**
*
(c)
*
**
***
****
*****
******
*******
********
*********
**********
(d)
**********
*********
********
*******
******
*****
****
***
**
*
A person invest 10000 in saving account yielding 5% interest.
Assuming that all interest is left on deposit.
Calculate & print the amount of money in the account at the year end of each year for
10 years.Use the following formula to determine the amounts.
a=p(1+r)^n
p-original amount invested
r-annual interest rate
n-numbers of years
a-amount on deposited at end of the n year
(required : Java program & answers)
q2.
Write Java program to print following patterns.
(a)
*
**
***
****
*****
******
*******
********
*********
**********
(b)
**********
*********
********
*******
******
*****
****
***
**
*
(c)
*
**
***
****
*****
******
*******
********
*********
**********
(d)
**********
*********
********
*******
******
*****
****
***
**
*
