I need help and I hope someone in this forum willing to help me.
Right now i'm developing a small project for my school. My project
should be written in java, and this is the project description :
my project will act as a program tester (maybe something like 'black
box'). Say, a teacher ask his students to create a homework using
java/C++. The homework can be various, maybe a simple CUI data
structure or a program that using quite complex gui. The students
must then submit the .java or .cpp file for their homework. Well, my
project will be act as a tester. So my project input is the .cpp
or .class file, then my project will test the homework. If the source
file can't compiled, then it failed. Otherwise, my project will
assign maybe about 100 inputs for the homework, and produce 100
output (or maybe homework terminated incorrectly, or infinite loop,
or exceed execution time limit). Of course, the teacher has the
correct output for same 100 input. My project will compare the
output from the teacher and the student's homework. The grade for
students based on how may errors occured. Also, my project will
record and then display the errors (ex : "for input '12' and 'asd',
your output is '12asd', should be '45qwe').
The problem is i don't know where to start. Is it possible for my
project to get an input from, maybe text file or database, and send
the input to the student's homework at the runtime? If this can be
done, how?? Also, how can my project get the output from the homework
at the runtime?? Also, how can I invoke javac (for .java) or gcc
(for .cpp) and know wether the source files can be compiled?? Which
java technology should i use?? Can u give me an url where can I get
the tutorial, I tried sourceforge.net, but can't find similiar
project??