Here is assignment 02. 

I have two examples, one ex with if...else and the other one using xor.