Another way to say "writing a program is for meeting a need" is "Some needs are met by newly written computer programs."