Join Us on : WhatsApp | Mobile app

Thursday, May 10, 2018

Basic of Computer programming

Computer programming
Introduction
Computer programming is done as essentially a set of written instructions that the computer follows (also known as binary coding). These instructions can be written in a number of different "languages".
The two important terms that we have used in the above definition are
·        Sequence of instructions
·        Computer Programming Language
Followings are basic elements
·        Programming Environment 
·        Basic Syntax
·        Data Types
·        Variables
·        Keywords
·        Basic Operators
·        Decision Making
·        Strings
·        Functions
Computer Programming – Environment: is about Perquisites to write the programs. Using which programming language you want to write the program application to be installed on your computer.   

Basic Syntax: syntax refers to the rules that specify the correct combined sequence of symbols that can be used to form a correctly structured program using a given programming language. Programmers have to communicate with computers through the correctly structured syntax, semantics and grammar of a programming language.

Data Types: basically are the types of the data value.
·        Numbers:
·        Characters:
·        Arrays:
·        Strings:
Variables: are used to store information to be referenced and used by programs. They also provide a means of labelling data with a descriptive name.

Keywords: are  a reserved word (also known as a reserved identifier) is a word that cannot be used as an identifier, such as the name of a variable, function, or label – it is "reserved from use".

Basic Operators: Programming languages typically support a set of operators: constructs which behave generally like functions, but which differ syntactically or semantically from usual functions. Common simple examples include arithmetic, comparison, and logical operations. More involved examples include assignment, field access in a record or object, and the scope resolution operator. Languages usually define a set of built-in operators, and in some cases allow user-defined operators.

Decision Making: is critical to computer programming. In some situations when you will be given two or more options and you will have to select a one option on the given conditions.

Loops: A loop is a fundamental programming idea that is commonly used in writing programs. These statements allow us to execute a statement or group of statements multiple times. Loop is a sequence of instructions that is continually repeated until a certain condition is reached.

Functions: is a block of organized, reusable code that is used to perform a single, related action. Using functions increase readability of a program. A big code is always difficult to read. Breaking the code in smaller Functions keeps the program organized, easy to understand and makes it reusable.


No comments:

Post a Comment