Similarities Between English Language and a Programming Language:

Objectives - Similarities Between English Language and a Programming Language

Objectives – Similarities Between English Language and a Programming Language

A person can be taught how to write, read and speak English provided he is taught every part of the English language, such as alphabets, punctuation marks, meaning of words, and Rules for combining them correctlyWe call such rules as Grammar. Once he learns every part of the language, he can be communicated and instructed to perform any kind of task. For example – Asking him to make tea, to write a script for a story… etc

But, how can you communicate and instruct a computer to perform tasks? Is it possible through English? Mind you, A computer cannot understand English. In order to make a computer perform a task we have to learn a language that a computer can understand: C, C++, and JAVA are some of such languages.

Similar to how you learn every part of English language to fully understand the Language, Computer languages also have grammar and various parts that need to be learnt.

In computer language, Grammar is called as Syntax. So, what are the parts of the Computer language? Before we learn what are its language components/parts, let’s see the parts of English language as illustrated in the diagram below.

Organization of English language

Organization of English language

As you can see from the above diagram, we have to go through all the above process to learn the English language. Most importantly, we have to know the rules to form sentences and organize the language structure. As I already mentioned, these rules are called as English Grammar.

Now, let’s look at how Computer language is organized. Look at the diagram below and make contrast between English and Computer language.

Organization of a Computer language

Organization of a Computer language

As you can see from the above diagram, just like English language, we have to go through the above process in order to learn a computer language. Primarily, we have to know the rules to form instructions and organize the language structure, thereby guide the computer to do various tasks. As I already mentioned, these rules are called as Syntax.

Note:

• #, %,*,-, +…etc… Are called as Special Characters or Special Symbols

• If, else, typedef, enum…etc…are some of the examples of keyword

2 thoughts on “Similarities Between English Language and a Programming Language:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">