Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    I will get many compiler errors with that.
    Your example should be a complete program that compiles and executes.
  2. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    The only reason to try would be if you are interested in learning how to program.
    If you're not interested then pass it on.
  3. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    Do you have the correct results for each computation so you can look at what was printed and see what is wrong with the output on each line?
    Can you list one line that is wrong and add comments that...
  4. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    Here is a sample of what you need to print out for the following one line of code:

    System.out.println("ds1=" + ds1 + ", vpt1=" + vp1t + ", vp2t =" + vp2t);
  5. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    What part of the output is correct and what part is wrong?
    Change the program's input to be only ONE value that generates a incorrect result. Then add lots of printlns to show the values as they are...
  6. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    Have you tried debugging your code by adding printlns to show all to the results as they are computed, along with the values that were used to create those results?

    For debugging, work with only...
  7. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    Can you explain what * - asp and * asp means in terms of a math formula?
    * is the multiply operator
    - is the subtract operator
    both are binary - ie they take 2 operands.

    Have you tried...
  8. Replies
    18
    Views
    1,528

    Re: Java Equation correct syntax

    Could you extract the code that is giving you the problem and post it with the formula that you are trying to evalute.

    There is a lot more to your code than just the formula.

    A suggestion: add...
Results 1 to 8 of 8