Need help creating this java program
I've just started taking a java class here at a local tech school and I was ill for about two weeks and unable to attend class. The teacher is STILL making me complete the following assignment and I don't even know where to start because I was unable to attend lecture. If someone could please help me out I'd greatly appreciate it.
Write a program that a bank can use to figure the final amount available for the investor to withdraw. The program should ask ( prompt ) the user for Initial Amount and number of months the money will be deposited. The bank currently pays 4% interest yearly. The formula the bank uses to figure the Final Amount is :
Final Amount = ( ( 1 + Yearly Interest Rate ) raised to the power of Number of years ) * Initial Amount.
Use the Math.pow method in your computations. Three examples of using Math.pow are :
Math.pow ( 2 , 3 ) returns 8.0
Math.pow ( 3 , 2 ) returns 9.0
Math.pow ( 3.5 , 2.5 ) returns 22.911765
The bank decided to be generous in figuring the number of years by rounding up any fraction years. Example : 14 months will be considered 2 years.
A sample run would look like this :
Enter Initial Amount : 1000.00
Number of months you will leave money in Bank : 14
Bank will give you credit for 2 years
Final Amount is : 1081.60