Aparaijitha,
Nice question..but i wonder how come two people ask the same question..???
It is OK let me state my opinion..Inorder to know which one is good program some rules are to be satisfied..
1) Number of steps in the program should be less with effective coding..
2) Bugs should be less or NIL( through testing this can be done and the program which have less bug is more accurate than one with bugs)
3) Fast in execution.
All over it should work properly at any time without failure...if the program has all these things it is good program.
This is my personal opinion..they maybe more but i think these are helpful to find which program is good.
Regards
Rajani