Thursday 16 January 2014

Basic of Computer Programming



There are different types of programming languages with the help of this programming language we can make a program. Generally a program is a set of instruction.
Before making any program we first learn the basics of computer system and programming.



What is a Program ?


I have already described you about program in my first post introduction. Human language compare to the Programming language is very different. Computer or digital machines are work on when an operation is done. Suppose we know English language but the computer does't know the English language. It only know the machine language (1,0). This is work as instruction for a machine.
Programming languages helps us to give instruction to the machines in his language while we don't know the machine language.



How to make program ?


Computer/digital machine have its own memory but it do not have sense. Computer can do only those work that is instructed by programmer/users. Programs are the the sense for computer to do a particular work. If we want to create a program we must keep in mind every condition/instruction (flow chart) that will occur in real life.
MS Word, Notepad, WordPad are editors. With the help of this editors we can not make a program. If we want to write a program we need a GCC Compiler. In this compiler we first write source codes than compile it and we get a compiled code. Here the source code is write in simple programing language while the compiled code is change to machine code. This machine code is execute by the Operating System.



Dos/Windows/Unix/Linux are Operating System


There are many Operating System such as Windows xp,7,8,vista, Unix, Linux, mack, backtrack etc. This operating System Operate the system. We can use more than one operating system in a computer but in a particular time only one operating system can operate the computer.When Program is execute than operating system run the program. Programming language use to make the program, Compiler used to compile the program and when compiled code get executed the operating system run that  program


User Interface


Now we know basic of programing. This time you are reading this post in a computer or other any device this is called User Interface. When something get printed on screen/monitor it known as user interface. if only text get printed than it is known as Text User Interface and if the text and graphics/rectangle window with color both get printed on monitor than it is known as Graphic User Interface. The TUI and GUI is depends on hardware and operating system of a particular device.
Think before 7 years calculators are best way to calculate and this have only Text User Interface. But now days you have a mobile with Text User Interface and Graphic User Interface.

Interface: When any object use the feature of another object than it is known as Interface. With the help of User Interface we communicate with machines.



Difference between program and software


It is simple to define A software is containing many programs. Software is collection of programs. The graphical user interface, text mode user interface, coding, little functionality and many more items are containing by a software but a program is only one part of software.

No comments:

Post a Comment