how to build a weather application in c (1)