Results 1 to 2 of 2
  1. #1
    SolidifieD is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Default 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. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by SolidifieD View Post
    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.

    If someone could please help me out I'd greatly appreciate it.
    ....
    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.

Similar Threads

  1. Replies: 3
    Last Post: 08-10-2009, 06:34 AM
  2. Replies: 2
    Last Post: 02-23-2009, 02:18 AM
  3. Creating Program Stubs
    By Bascotie in forum New To Java
    Replies: 2
    Last Post: 01-18-2009, 06:27 AM
  4. Creating installer for java program
    By priyanka.dandekar in forum Advanced Java
    Replies: 9
    Last Post: 10-05-2008, 10:04 PM
  5. Replies: 0
    Last Post: 04-04-2008, 02:40 PM

Posting Permissions

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