Monday, 20 May 2013

Lesson 06 - Introducing Algorithms

An Algorithm is a step by step procedure to accomplish task. This use for calculation, Date Processing and automated reasoning. The word "Algorithm" is derived from Arab mathematician "Al-Khwārizmī"(825 AD).

In our daily and professional life we have to perform sequence steps to complete task. For an example : If you need to prepare a cake you have to follow few steps to make that. which mean you have to add and mix ingredients on fan and you have to bake it and you have to test with fork before taste it or serve it to somebody else.

Therefore you may have understood algorithms follows certain steps to finish task. It can be categorised in to three phases.

Input Phase -Add Ingredient to fan

Process Phase - Mix and Bake the Cake

Output Phase - As a result of above process you can have a Cake.

Saturday, 4 May 2013

Lesson 05 - High Level Language (Third generation Programming Language)

As we learnt in previous lessons Machine language and Assembly languages known as low level programming languages. The reason it known as low level programming language is it always depend on hardware. Therefore programmer had to find out the way to overcome with this problem. As a result, They found High level programming language.  A High level programming language is user friendly because its similar to English language.

Some examples of high level programming languages 
(Basic, COBOL, C and Pascal) 

Advantage of High Level Programming language,

Its really easy to learn High level program language than machine language and assembly language because instruction are more like English.

A Programmer easy to  read, write and maintain program written in High level program language.(High level language vocabulary similar to English language)

It's  not hardware depend its hardware independent programs written by high level language are easy to use another computer.

Compiler

Program written in high level language need to translate for execute. A computer need translation software called a compiler.

Each high level language has its own compiler which translate the source code to object code.

Ex : Compiler for COBOL is COBOL Compiler. Its only translate program written in COBOL programming language.

Function of Compiler
Click on Picture to Large