A computer can
be given instructions in the form of a program. Program is a very common word
in your day-to-day life also. For e.g. to post a letter you will
1. Get ready
2. Go to Post
Office
3. Give money to
the Post Master for stamp
4. Take stamp
and fix it on the envelope
5. Post the
letter in the letter box
6. Come back
home
Here, set of instructions
are listed step wise to post a letter. It means that a program was set for you.
A set of instructions is called a program.
We give
data and instructions to the computer to do any task. We can define a computer
program, as a set of instructions given to a computer to get desired result.
Need
for a Programming Language
A
language that is encrypted in binary numbers or a language similar to binary
numbers that a computer’s hardware understands is understood more speedily by the
computer. Languages that use English like statements are easier for programmers
to use, but they have to be translated first so that the computer can
understand it.
The person who
writes the program for computer is known as Programmer and programs are known
as Software. A computer follows the instructions given by the programmer to
perform a specific job. To perform a particular task, a programmer prepares a
sequence of instructions known as program, which is written in a programming
language.
Program: A
set of instructions given to the computer to execute a task is known as program
and the process of writing is called programming. A person who writes programs
is called a programmer.
BASIC -
Beginners’ All Purpose Symbolic Instruction Code was developed by John G Kemeny
and Thomas E Kurtz at Dartmouth College in U.S.A. in 1964. It is one of the
simplest and easy to use computer languages. Basic is a High Level Programming
Language, also termed as the Interpreter which reads one statement of a program
at a time and executes appropriate instructions leading to some computations.
Basic is an
interactive language, meaning it allows interactive communication between the
user and the computer during the execution of programs.
Like other
languages, computer languages also have grammar. Grammar used for any computer
language is known as Syntax of that language.
We have
to follow some rules and these rules are known as Syntax rules. While writing a
program if we make a mistake in the syntax, then computer displays error
message “Syntax Error”.
Syntax
Rules of Basic
1. Basic Program
is made up of lines or statements. A new statement should be written on a new
line.
2. All
statements should have a line number.
3. Line number
should be a positive integer (whole number).
4. No two
statements can have the same line number.
5. Line number
should be followed by Basic command.
6. Statements
are executed in ascending order only.
7. Program
should end with END command. END command should have the highest line number.
Any line number after the END will be ignored.
8. Usually line
numbers are given in the multiples of 10s.
We have to
provide data to the computer in the form of a program. Data are made up of
different characters.
Characters: Any
sign or symbol is known as a character. The basic character set is made up of
Alphabets, Numbers, and Special signs. For e.g. A to Z, 0 to 9, # “ $ etc.
Blank space is also considered as a character.
Data:
Data is a fact. Data consists of character set. Data is processes to get
information. Processed data is called result. Data is of two types: Numeric and
Non-Numeric.
Numeric:
This information has only numbers. These numbers can be positive, negative,
fractional or integer. Information regarding age, time, height, weight will
always be a number. Numeric data is used for mathematical calculations e.g. 45.
67.7. 34x4, 89+4 etc.
Non-numeric:
This information consists of numbers, alphabets or any other special sign. Non
numeric information is generally written in quotation marks in the computer
programs. With non-numeric information one cannot do Mathematical calculation.
E.g.”Roshan” , “45 apples “ , “ $%”.
Process:
Process means work done on the information.
2 comments:
“Centre for Manpower Solutions” is a reputed Human Resource company registered in Jaipur.
We are providing the following services for more than a decade:
- Executive search
- Temp. staffing solutions
- PMC based staffing solutions
- Technical inspection and QA/QC services
- Employee background check
Visit our website and upload your resume
www.cmsjobs.in
“Centre for Manpower Solutions” is a reputed Human Resource company registered in Jaipur.
We are providing the following services for more than a decade:
- Executive search
- Temp. staffing solutions
- PMC based staffing solutions
- Technical inspection and QA/QC services
- Employee background check
Visit our website and upload your resume
www.cmsjobs.in
Post a Comment