Search:

Type: Posts; User: DaveK

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    1,626

    Re: How do I loop with an If statement

    Yep must have been the computer or Netbeans. I tried the System.out.print() again on a different computer and it worked fine. Very frustrating, I knew that was how to do it.
  2. Replies
    10
    Views
    1,626

    Re: How do I loop with an If statement

    Got it! Thanks!
  3. Replies
    10
    Views
    1,626

    Re: How do I loop with an If statement

    I've tried this every way I can think of, and I cant the answer to (y/n) to appear on the same line right after the : of the question.
  4. Replies
    10
    Views
    1,626

    Re: How do I loop with an If statement

    Sorry still learning. Do you have any example?
  5. Replies
    10
    Views
    1,626

    Re: How do I loop with an If statement

    Thanks for the response. I actually took a second look at the do loop. I did some trial and error and ended up with this. It works. The only thing is, when the user is prompted for the y/n? The input...
  6. Replies
    10
    Views
    1,626

    How do I loop with an If statement

    Here is what the program needs to be able to do:

    //Run1

    "Enter loan amount: 100000
    Enter rate: 6
    Enter number years: 30

    The monthly payment is: $599.55
  7. Replies
    10
    Views
    949

    [SOLVED] Re: Mortgage calulator HW problem

    I read this before and it helped. I missed the part about monthly rate. so I just added this
    yearRate = interestRate * .01; //convert rate into decimals
    **...
  8. Replies
    10
    Views
    949

    [SOLVED] Re: Mortgage calulator HW problem

    Do you have an example?
  9. Replies
    10
    Views
    949

    [SOLVED] Re: Mortgage calulator HW problem

    I convert the annual interest rate with
    monthlyRate = interestRate * .01; //convert rate into decimal

    Will that not do the same as /100?
  10. Replies
    10
    Views
    949

    [SOLVED] Re: Mortgage calulator HW problem

    I'm sorry. I don't understand how to use highlight tags. But the answer should be $297.47 in this example and I am getting $566.06. My answer is incorrect meaning the math must be wrong. I can't...
  11. Replies
    10
    Views
    949

    [SOLVED] Mortgage calulator HW problem

    Hello,

    I am very new to programming and I have hit a stuck point in my code. This is for a mortgage calculator and we have to use the math.pow method. I am getting results, but the results are...
Results 1 to 11 of 11