General Errors
I'm pretty new with java, and I'm not sure how to deal with these error messages. Here is the code:
import java.io.*;
public class Poly{
public static void main(String[] args){
//first have the user enter the inputs
{
int x;
int y;
int z;
System.out.println("Enter first root");
x = IO.readInt();
System.out.println("Enter second root");
y = IO.readInt();
System.out.println("Enter third root");
z = IO.readInt();
}
/*next is the algorithim to determine the polynomial. This is done by determining the values of a,b,c and d
in the formmula ax^3 + bx^2 + cx+ d */
{
int value_one = x + y;
int value_two = x * y;
int value_three = z * value_one;
int value_four = z * value_two;
int value_five = z + value_one;
int value_six = value_two + value_three;
}
//finally we print the polynomial
{
System.out.println("The polynomial is x^3 + 'value_five'x^2 + 'value_six'x + 'value_four'");
}
}
Here are the errors the compiler is giving me.
ruw-172:code Flowing13$ javac -classpath . Poly.java
Poly.java:13: cannot find symbol
symbol : variable I0
location: class Poly
x = I0.readInt();
^
Poly.java:16: cannot find symbol
symbol : variable I0
location: class Poly
y = I0.readInt();
^
Poly.java:19: cannot find symbol
symbol : variable I0
location: class Poly
z = I0.readInt();
^
Poly.java:24: cannot find symbol
symbol : variable x
location: class Poly
int value_one = x + y;
^
Poly.java:24: cannot find symbol
symbol : variable y
location: class Poly
int value_one = x + y;
^
Poly.java:24: incompatible types
found : java.lang.String
required: int
int value_one = x + y;
^
Poly.java:25: cannot find symbol
symbol : variable x
location: class Poly
int value_two = x * y;
^
Poly.java:25: cannot find symbol
symbol : variable y
location: class Poly
int value_two = x * y;
^
Poly.java:26: cannot find symbol
symbol : variable z
location: class Poly
int value_three = z * value_one;
^
Poly.java:27: cannot find symbol
symbol : variable z
location: class Poly
int value_four = z * value_two;
^
Poly.java:28: cannot find symbol
symbol : variable z
location: class Poly
int value_five = z + value_one;
^
Poly.java:28: incompatible types
found : <nulltype>
required: int
int value_five = z + value_one;
^
Can anyone help with these? I'm not sure how to go about fixing them.




