I will get many compiler errors with that.
Your example should be a complete program that compiles and executes.
Type: Posts; User: Norm
I will get many compiler errors with that.
Your example should be a complete program that compiles and executes.
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.
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...
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);
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...
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...
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...
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...