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...
Type: Posts; User: Zyrion
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...
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...
My compiler BlueJ throws an indexOutofBounds exception.
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...
It doesn't matter, there supposed to be integers entered by the user. It says it in the code lol.
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.
/*****************************************************************************************************************
* Anthony Chahine
* 2/25/2013
* Quadratic Equation Grapher
*
* Takes...