Hi All,
I do really need to consult you guys about my java assignment.
Please guide me how to make an algorithm to select an input from a set of inputs?
Suppose I have a program p (a), an input a=1, a set of inputs = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. This is the program:
int a=1
if(a<5) {
System.out.prin tln("if-1: True");
if(a<3) {
System.out.prin tln("if-2: True"); }
else {System.out.pri ntln("if-2: False"); }
System.out.prin tln("a:" +a); }
else {
System.out.prin tln("if-1: False");
if(a<8)
{
System.out.prin tln("if-3: True"); }
else {
System.out.prin tln("if-3: False"); }
System.out.prin tln("a:" +a); }
How am I supposed to do?
Anything to do with set those inputs is stored in a file and the program first read the file to get all candidates into a list?
Note: Because later I need to select an input from the set to force a different branch of execution.
Thanks guys....
I do really need to consult you guys about my java assignment.
Please guide me how to make an algorithm to select an input from a set of inputs?
Suppose I have a program p (a), an input a=1, a set of inputs = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. This is the program:
int a=1
if(a<5) {
System.out.prin tln("if-1: True");
if(a<3) {
System.out.prin tln("if-2: True"); }
else {System.out.pri ntln("if-2: False"); }
System.out.prin tln("a:" +a); }
else {
System.out.prin tln("if-1: False");
if(a<8)
{
System.out.prin tln("if-3: True"); }
else {
System.out.prin tln("if-3: False"); }
System.out.prin tln("a:" +a); }
How am I supposed to do?
Anything to do with set those inputs is stored in a file and the program first read the file to get all candidates into a list?
Note: Because later I need to select an input from the set to force a different branch of execution.
Thanks guys....
Comment