Learnings of the Week [ August 25-29, 2008 ]
In this week, we tackled about the C Language, Flowcharting and Algorithm, and the Basic Control Structures.
I learned that,
The SPL (System Programming Language) is the general purpose language.
In the year 1970, the B Language was developed.
Ken Thompson is the one who developed the B Language.
The technical committee created under the C Language is the X3J11 committee which was created in the year 1983.
There are 32 keywords the C Language has. 27 came from Brian Kernighan and Dennis Ritchie and 5 added by the ANSI Standardization Committee.
The famous book written by Brian Kernighan and Dennis Ritchie is The C Programming Language.
The BCPL (Basic Command Programming Language) was developed by Martin Richards.
Five Features of the C Language:
A simple core language, such as math functions or file handling provided by a standard set of library routines.
Focus on procedural programming paradigm which facilitates for programming in a structured style.
Parameters are always passed by value, never by reference.
C encourages the creation of libraries user-defined functions.
C is flexible when it allows unrestricted conversion of data from one type to another, such as conversion of a character to its numeric equivalent.
Uses of C Language:
¡ Operating system
¡ Language compilers
¡ Assemblers
¡ Text editors
¡ Print spoolers
¡ Network devices
¡ Modern programs
¡ Databases
¡ Language Interpreters
¡ Utilities
Flowcharting and Algorithms
Flowcharting is the use of symbols and phrases to designate the logic of how a problem is solved. It is a common method for defining the logical steps of flow within a program by using a series of symbols to identify the basic input, process and output function within a program. It is a two-dimensional representation of an algorithm; the predefined graphic symbols of a flowchart are used to indicate the various operations and the flow of control. It is a diagram representing the logical sequence in which a combination of steps is to be performed. It is a blueprint of the program.
Algorithm is a finite set of instructions that specify a sequence of operations to be carried out in order to solve a specific problem or class of problems.
The Basic Control Structures are:
Sequence
Selection (if-then-else)
Repetition (Looping)
Sequence is a process executed from one to another in a straightforward manner. Here is the diagram of sequence.
Repetition (Looping)
This structure provides for the repetitive execution of an operation or routine while the condition is true. The condition is evaluated before executing any process statement. As long as the condition is true, the process is executed, otherwise, control flows out of the structure.
COMMONLY USED OPERATORS IN FLOWCHARTIING
Arithmetic Operators
+ Addition
- Subtraction
* Multiplication
/ Division
Relational Operators
= Equal
> Greater than
< Less than
<> Not equal
> Greater than or equal to
< Less than or equal to
Logical Operators
&& AND
|| OR
! NOT
Posted by:
RAE ANGELINE S. PALEN




