|
import java.io.*;
public class Class1
{
public static void main (String [] args) throws java.io.IOException
{
int y;
int x1;
int x2;
int excellent;
int low;
int poor;
int verygood;
int good;
int nosignal;
System.out.println("Please enter x1");
System.out.println("Please enter x2");
if((x1==excellent)&&(x2<=low)){
y = "almost good" ;
}else if ((x1==excellent)&&(x2<=poor)){
y = "poor" ;
}else if ((x1==excellent)&&(x2<=nosignal)){
y = "no signal" ;
}else if ((x1==verygood)&&(x2<=low)){
y = " good" ;
}else if ((x1==verygood)&&(x2<=poor)){
y = "low" ;
}else if ((x1==verygood)&&(x2<=nosignal)){
y = "poor" ;
}else if ((x1==good)&&(x2<=low)){
y = "almost low" ;
}else if ((x1==good)&&(x2<=poor)){
y = "almost good" ;
}else if ((x1==good)&&(x2<=nosignal)) {
y = "poor" ;
} else{
y = "no sgnal" ;
}
System.out.println("your type of signal is:");
}
}
Sorry about that bro I wrote it by myself be there are some of error so could you see what is the wrong with my code
Im really sorry about that
|