Here's what the web says. A computer program is
- a set of statements or instructions to be used directly or indirectly in a computer in order to bring about a certain result
- what makes the computer do things
- a set of instructions written in a programming language
- an algorithm written in a language that a computer can understand
- simply a long list of code written in another language
- a set of instructions for altering the contents of various words in the computer's memory
- a carefully thought out, step-by-step, set of instructions prepared by a programmer
- an organized list of instructions that, when executed, causes the computer to behave in a predetermined manner
- is a procedure (or algorithm) for performing some computation
- a bunch of instructions run by a computer, just like a storybook is just a whole bunch of sentences read by the reader
Does anyone have any better definitions?
Programs = Algorithms + Data Structures (If you reverse the title of Wirth's book to better fit your question :D)
ReplyDeleteAny datum is a computer program, when seen through an appropriate evaluator. The interesting question rather is "What is programming?".
ReplyDeleteThe joke is that the difference between a programmer and a user, is that the programmer
knows there is no difference between using and programming.