I need help in coding my lab 1, in which i have to create 2 traffic

This is embedded systems in which i have to work on PIC18f45k22 micro-controller all the schematic and Lab details are attached with this question. I have to submit this lab by thursday of this coming week. Please help guys who are really good in programming. 

Thanks