Transcription of Basic Principles of Computer Programming in C
{{id}} {{{paragraph}}}
1 Intensive Revision: Basic Principles of Computer Programming in CDavid Computer ModelInformation ProcessingqWhen we process information, we do one of two things: we change its representation (typically to enhance it) we analyze it to extract its meaningqHow do we process information?3 The Computer ModelComputer SoftwareqA Computer program is a sequence of instructions (statements)qExpressed in a given language ( C)qThe language has a vocabulary a set of wordsqThe language has a grammar a set of rules about how words can be linked together This is called the syntaxof the language4A C Program/* Example 1 *//* This is a C program to ask you to type a letter *//* and then to tell you what you typed */#include < >main() {char letter;printf( Please type a letter & then press Return >> ).}
3 The Computer Model Computer Software q A computer program is a sequence of instructions (statements) q Expressed in a given language (e.g. C) q The language has a ‘vocabulary’
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}