Search:

Type: Posts; User: Bryan29

Search: Search took 0.07 seconds.

  1. Replies
    8
    Views
    1,505

    Re: Whats wrong with my code?

    I copied that code from an even number example done by my professor, posted on his site. It has to be right..

    Could the interest variable that is involved in the loop be affecting it?
  2. Replies
    8
    Views
    1,505

    Re: Whats wrong with my code?

    Loan Amount: 10000
    Number of Years: 5
    Interest Rate Monthly Payment Total Payment
    5.0/// / 50000.0--- 3000000.0
    5.125// 51250.0--- 3075000.0
    5.25/// 52500.0--- 3150000.0
    5.375// ...
  3. Replies
    8
    Views
    1,505

    Re: Whats wrong with my code?

    My new code:



    import java.util.Scanner;

    public class Exercise04_21 {

    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
  4. Replies
    8
    Views
    1,505

    Re: Whats wrong with my code?

    The formula is:

    (loanAmount * monthlyInterestRate) / 1 - (1 / (1 + monthlyInterestRate)^numberOfYears*12)

    , copied from the book. I entered it in using several different variables and 1 long...
  5. Replies
    8
    Views
    1,505

    Whats wrong with my code?

    Hello, I'm trying to make a program that compares loans with interest rates from 5% - 8%, with an increment of 1/8.
    The output should look something like:

    Loan Amount: 10000
    Number of Years: 5...
Results 1 to 5 of 5