Need an idea for some source code testing/evaluation tool
I am working on a college project which includes testing of the source code submitted by a student.
I am a student of Computers and like any other institute we are given some simple problems to solve using languages like C/C++/Java/Php 

eg. make a method which returns false or true if the conditions are met:

1) condition 1

2)Condition 2

3) condition 3

The professors have to check each code and the marks are given accordingly. So I was planning to develop a solution for this. Is it possible that the process can be automated using some tool. 

Or do i have to make such an application on my own (which i guess will not be that easy).
If any more information is required please ask. and please please
Please help me out on this one. Just an idea.

Thanks in advance
Need an idea for some source code testing/evaluation tool
===

I am working on a college project which includes testing of the source code submitted by a student.
I am a student of Computers and like any other institute we are given some simple problems to solve using languages like C/C++/Java/Php 

eg. make a method which returns false or true if the conditions are met:

1) condition 1

2)Condition 2

3) condition 3

The professors have to check each code and the marks are given accordingly. So I was planning to develop a solution for this. Is it possible that the process can be automated using some tool. 

Or do i have to make such an application on my own (which i guess will not be that easy).
If any more information is required please ask. and please please
Please help me out on this one. Just an idea.

Thanks in advance