how much you'll get for writing a programing book?
how long does it take to write it? half a year to a year or more, full time work.
so, the total you make in a year is maybe $8k.
for a average programer, you get $8k in a month or 2.