Hello , Nobody here writes code for you here . You need to do some research and code yourself. When you need assistance , you can post your code and ask for assistance. People here assist other based on their free time and interest , so people here won't be interested in writing code .
May be a Google search will guide further .
https://www.google.co.in/?gws_rd=ssl#q=prolog+%2B+car+system[
^]