Search:

Type: Posts; User: Bryan29

Search: Search took 0.26 seconds.

  1. Replies
    4
    Views
    544

    Re: Why do I get this error?

    Hey thanks for replying :)

    I typed in : 3 Smith 70 Jones 30 Mary 100

    The order entered should be numberOfStudents name[0] score[0] name[1] score[1] name[2] score[2]

    I'm giving it an integer,...
  2. Replies
    4
    Views
    544

    Why do I get this error?

    Hello,

    I posted this program last night and got help with the sorting of the arrays, but I still get an error whenever I try and run it. There is something wrong with the input portion of my code...
  3. Thread: Sorting Arrays

    by Bryan29
    Replies
    5
    Views
    1,246

    Re: Sorting Arrays

    Thanks a lot for the help and explanation :) The input is like that because it needs to look a certain way in order to go through as correct on his website where we turn these in.

    I switched it...
  4. Thread: Sorting Arrays

    by Bryan29
    Replies
    5
    Views
    1,246

    Sorting Arrays

    Hello,

    I'm a beginner in Java and am having trouble putting this program exercise together / I think I got it and I may have just messed up somewhere along the lines.

    The program is to prompt...
  5. Replies
    8
    Views
    518

    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?
  6. Replies
    8
    Views
    518

    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// ...
  7. Replies
    8
    Views
    518

    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);
  8. Replies
    8
    Views
    518

    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...
  9. Replies
    8
    Views
    518

    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 9 of 9