Breaking News
recent

Fundamentals of programming

Fundamentals of programming

 Computer

  • It is a programmable machine which execute the schedule task. 
  • To perform a task or accomplish a goal, a system receives inputs, process and return output.
     For example, if we consider a school system,
         Input - Children, Teacher, Funds
         Process - Teaching and learning
         Output - Educated students

                           Data → Processing→ Information

Computer uses Compiler and interpreter to perform the task

Compiler

  • It translate the whole program into machine language.  
  • Compiler translate all the command in a program to an object code which can be understand by the computer. 
  • Once a program is compiled, it can be executed by the machine.
             Example: C and FORTRAN
  • The main process what the compiler does is to translate Source Code Program into Object Code Program. 
  • Errors found in a program are called "bugs" and the process of eliminating from a program is called Debugging.

Interpreter

  • An interpreter does the translation at the moment the program is run, one line at a time. 
  • As a result, the lines of the program have to be translated into machine code each time the program is run.
           Example: VB and Python

  Computer programming

  • It is a process of developing and illuminating various set of instructions to unable a computer to do a certain task.
  • Computer program is a set of instructions or commands, which tell the computer what to do.
  • Computer languages are used to develop application program.

Computer program

  • Computer programmes are the set of instructions developed by using computer programming languages.
  • Computer programmes are designed to give the instructions to the computer systems.

Computer programming languages

  • A programming language is a set of instructions to create software to solve a problem. 
The following are the some example of programming languages

 

  1. C
  2. C++
  3. Java
  4. Python
  5. BASIC
  6. VB.NET
  7. Pascal
  8. Ruby

              Real world problems ↔ Computer → Solutions
                                                         ↓
                                     Instructions to solve the                    problem(Program)

No comments:

Powered by Blogger.