Posts

Showing posts with the label Programming

Basic Concept of Programming and GIGO

A computer performs task in the following concept 1. It takes input before proceeding form input devices 2. The computer perform necessary operation on data 3. The output is generated after the processing is completed So while doing programming you must provide input and provide instruction to perform some operation. The output will be generated as your instruction and should be displayed or perform. G igo Gigo is a term that defines about the performing procedure of a machine. It says that computer will produce the output not of your need, rather it will produce the output as according to the input provided. Garbage In-Garbage out, means that it will produce meaningless output, if you have provided wrong input. For example, the you want a program that produce the city name in alphabetical order but if you have provided the name of animals as input then the output will sort the name of animals in alphabetical order, not the name of cities.

Features of a good program

A program can be good by the following features: Portable  :    A good program must be able to run in any platform(Operating System).   Documented : A good program should be documented properly so that it will be helpful to the user of the program to use as well as other programmer to understand it and further make some useful changes in it. Clarity : The program should be well readable so that the program can be studied well. Flexibility : A good program should be flexible enough to handle most of the changes without having to rewrite the entire program.

Introduction

C programming is one of the powerful programming language. It is procedural programing language that makes a machine to follow the instruction step by stem from top to bottom. It is developed by Dennis Ritche in 1972 AD at AT and T bell laboratories. C programming is very useful for learning programming. You must have begin your journey learning C in order to became a great programmer and to learn programming in deep, C is must. The key advantages of C programming are Easy to learn Structured programming Produce effective programs Can handles low level language issues easily Programs written in it can be compiled any where The Applications of C programming are Operating System Language Compilers Text Editors  Print Spoolers etc

Syntax and Semantic

S yntax is a grammar of writing program. It is the rule of writing program in a correct way that may decreases the possibility of bug in the program. Programs written in any language have their own syntax rule. A coder/programmer must follow these rule so as to execute instructions in a correct way. S emantic is a meaningful output of any instruction given by the programmer. Program written in a correct way may not produce correct output. The output must be generated that the program is designed to.

Programming Designing Tools

Image
B efore doing coding for the programs we must know about tools used in programming. Following are the programming design tools that may help you to understand the logic and the way the programs are made. Algorithm Flowchart Pseudocode  These tools helps in construction of programming. Developers use these tools so that they can develop the program without forgetting the steps. Algorithm An algorithm is a step by step solution of a problem. A machine cannot solve any problem its own. It needs instruction to perform. The well mannered and finite number of steps helps any machine to solve the problem. For example a robot needs instructions to polish a shoe or make a cup of tea. Features There must be finite number of steps Input and Output should be predefined Steps should be well formatted. It must be clearly readout An algorithm to make a cup of tea Step 1 : Start Step 2 : Pour two glass of water in boiling pot Step 3 : Lit the gas stove Step 4 : Boil the p...

Compiler and Interpreter

C ompiler translate high level programming language into machine level language so as computer can understand these language and performs the instruction given. It translates whole source code at once into object code. Compiler are only used in those programming language for which it is been designed.` Features It translates the whole source program into object code It saves times for the program to covert into machine language. Program can be compiled for one time and run for any time. I nterpreter is a translator which translates high level programming language into machine language. Each line of the programming language are translated with interpreter. It may take more time to write the code of the program but run efficiently. Features Translates source code into intermediate form It is time consumming Debugging time is saved 

High Level Programming Language

H igh level language is much closer to human language. It is easy to understand and easy to learn. This is the advanced type of programming language. Many developer develops program using these language. Many more high level languages are being introduce nowadays. For example C, C++,Java, Kotlin etc. These programming language results in yielding many more software in less time and saves time of developer. It doesn't require any kind of knowledge of machine architecture. Program/Software written in one computer can run in another computer. Advantages of High Level Language It is easier to read and understand. It is machine independent i.e program written in one computer can run in any computer. It doesn't require much cost for production. It makes easy to create document of the program. Disadvantages of High Level Programming Language It needs translator to convert into machine Language It is less efficient and time consuming. High Level Programming Language req...

Assembler

A built-in program that converts assembly language to machine language is known as Assembler. Machine cannot understand assembly language therefor it most be converted to machine language. The original assembly language program is known as source code and the converted code is known as object code. Functions of Assembler It translates mnemonics into machine code/object code. It helps to find out the bug in the source code.

Low Level Programming Language

Image
L ow Level Programming Language is the language that is close to Machine Understanding language. These languages are based on the architecture of Machine. There is no more abstraction for machine to understand these types of languages. It is simple but yet considered as very difficult language due to its complexity in remembering all the codes.

Programming Concepts

Image
People need a language to communicate with each other. These language may be either French, Ameicans, Spanish etc known as natural language. In the same manner, to communicate with machine, we need a different language known as machine language. Machine needs instruction to perform any types of task to be carried out. These instructions collectively known as program. The instruction given should be in machine language so that machine can understand. The instruction should be in a manner i.e should follow the rule of program writing. Instructions collectively known as program. Language to interact with computer is known as programming language that a instructor should learn before giving any instruction to machine/computer. There are two types of Programming Language Low Level Language  High Level Language