This book came out of the 1970s (early 1980's) at the latest. In it the protagonist, a not so diligent student, gets turned on to computer programming and creates (I think..) a weather program.
Eventually he moves on and years later the program contacts him. It has become an AI and he is its creator.
I forget what the setup is post contact which is not helpful at all..