Temperature controlled fan using Arduino

hi i am making a project that when the temperature reaches 78 degrees the fan turns on and when it lowers again to 72 it turns off. any ideas how to write a program... we are new at this :confused: