Introduction
Computer programming (often shortened to programming) is a process that leads from an original formulation of a computing problem to executable computer programs. Programming involves activities such as analysis, developing understanding, generating algorithms, verification of requirements of algorithms including their correctness and resources consumption, and implementation (commonly referred to as coding) of algorithms in a target programming language.
To construct any computer-based system, we must use some process to translate the idea for the use of the computer into lines of source code which can be compiled and executed. This process typically includes the tasks of: requirements gathering, what we would like the system to do; analysis, finding out how the system should behave; design, deciding the structure of the system to be constructed; implementation, writing the source code; and testing, verification and validation, making sure the system does what we claim! The tasks of implementation and testing also include the task of debugging, which is the finding and removing of errors (usually called bugs, hence the term debugging) in our program.
Imperative Programming
A program written using an imperative programming language is executed by following an ordered sequence of instructions: in programming languages such as Java these instructions are usually termed statements. Based on this idea of an ordered sequence of statements, a program may be designed by decomposing a problem into a sequence of statements and then having them executed in the order they are written down. As an example of imperative statements let us consider moving around a two dimensional space. In particular, let us consider moving around a on chess board.
Detailed Reading is available in PDF.
Format: Pdf
Total Files: 4
File Size: 7.2 MB
Post a Comment