Search:

Type: Posts; User: jamesR

Search: Search took 0.28 seconds.

  1. Replies
    2
    Views
    433

    Re: Why is my while loop bugging out?

    When your loop executes, it only increments the value of i when it is a factor of x. So for example, if you are looking for factors of 12, once the loop gets to 5, since it isn't a factor, it will...
  2. How do i make two equations have to be equal?

    Right now i am writing a program that will find the intersection point of two lines. My general equations are y=m1 * x + b1 and y = m2 * x +b2. I want to make m1 * x + b1 HAVE to equal m2 * x + b2,...
  3. Re: when i run the program to find the y values it always prints y2 instead

    sorry, I wasn't ignoring your question, I was away from my computer for a while.
  4. Re: when i run the program to find the y values it always prints y2 instead

    Thank you so much for all your help Zaphod, i have no idea how i din't see that simple error earlier.
  5. Re: when i run the program to find the y values it always prints y2 instead

    ok so when i did what you suggested, d was always 3.
  6. Replies
    12
    Views
    692

    Re: Errors with beginning jOptionPane code

    I would suggest putting the area outputs in the initial if statements with asking fr the base that might make it easier to look at.
  7. when i run the program to find the y values it always prints y2 instead

    import javax.swing.*;
    public class LinearFinder
    {
    public LinearFinder()
    {
    }
    public static void main(String args[])
    {
    int x1;
    int y1;
Results 1 to 7 of 7