Search:

Type: Posts; User: Zyrion

Search: Search took 0.09 seconds.

  1. Replies
    11
    Views
    962

    [SOLVED] Re: JApplet Grapher Not Painting

    Why does the code use 21 in the for loop?


    int[] array = new int[20]; //This yields 21 elements = array[0],array[1],array[2]...array[20]

    for( i = 0; i < 21 ; i++ ){ /* In order to access...
  2. Replies
    11
    Views
    962

    [SOLVED] Re: JApplet Grapher Not Painting

    What array is being indexed? xVals[], and yVals[]
    What is the size of the array? xVals.length = 20, yVals.length = 20
    What is the value of the index? xVals[] =-10 to 10 and yVals[] = 0 until...
  3. Replies
    11
    Views
    962

    [SOLVED] Re: JApplet Grapher Not Painting

    My compiler BlueJ throws an indexOutofBounds exception.
  4. Replies
    11
    Views
    962

    [SOLVED] Re: JApplet Grapher Not Painting

    I added the super.paint(g); method to instruct the parent class to invoke it's own paint method so it will draw itself correctly. I commented out the start() method and the paint() method ran...
  5. Replies
    11
    Views
    962

    [SOLVED] Re: JApplet Grapher Not Painting

    It doesn't matter, there supposed to be integers entered by the user. It says it in the code lol.
  6. Replies
    11
    Views
    962

    [SOLVED] Re: JApplet Grapher Not Painting

    The values entered by the user are the variables for the quadratic equation Ax + Bx + C (variables a, b, and c). And I commented it out to test it and it still does not work unfortunately.
  7. Replies
    11
    Views
    962

    [SOLVED] JApplet Grapher Not Painting

    /*****************************************************************************************************************
    * Anthony Chahine
    * 2/25/2013
    * Quadratic Equation Grapher
    *
    * Takes...
Results 1 to 7 of 7