Java Interview Questions



Factorial



Average of given n number



Fibonacci Series



Reverse of n digit number



Armstrong Number



Armstrong Number within 100 - 999



Find factors



Find prime number



Find the given number is perfect number are not



Find the given number is strong number are not



Write a Java method to compute the future investment value at a given interest rate for a specified number of years. Sample data (Monthly compounded) and Output,


Input the investment amount: 1000, Input the rate of interest: 10, Input number of years: 5

Expected Output:

Years FutureValue
1 1104.71