# Thread: Need help creating this java program

1. Member
Join Date
Feb 2010
Posts
1
Rep Power
0

## Need help creating this java program

Hey guys,

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

2. Originally Posted by SolidifieD
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.
You need to contact your teacher to get tutoring, otherwise since programming requires a base of knowledge before you can acquire new knowledge, you will fail.

....
You've posted your assignment without an actual question, so the best I can do is point you to the Java tutorials: The Really Big Index
Have a look at these and your notes and then come on back if you have a specific question.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•