Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Language is a mean of communication. We use natural languages such as English, to communicate our ideas and emotions to others person. Similarly a programmer uses a computer language to instruct a computer. What he or she wants do. Every natural language has systematic method of using the words and symbols in that language. Similarly, tae worlds and symbols of a computer language must also be used as per the set rules known as syntax rules, of a language. Therefore a language that is acceptable to computer system is called computer language or programming language.
switch. Thereafter the programmers referred to fixing programming mistakes as debugging.) (6) Submit the program for beta testing, in which users test the program extensively under real-life conditions to see whether it performs correctly. (7) Release the product for use or for sale after it has passed all its tests and has been verified to meet all its requirements. These steps rarely proceed in a linear fashion. Programmers often go back and forth between steps 3, 4, and 5. If the software fails its alpha or beta tests, the programmers will have to go back to an earlier step.
OPERAND-tells computer where to find or store data or instruction which are to be manipulated.
INSTRUCTION FORMAT;
OPERAND ADDRESS/LOCATION
ASSEMBLER;
A computer can directly execute only machine language program, which numbers for representing instructions and storage location.so assembly language program must be converted into its equivalent machine level language program. This translation is done with the help of translator program known as ASSEMBLER. An assembler is a system software which translate s an assembly language into its equivalent machine language.
Machine dependent Knowledge of hardware is required Machine level coding all instruction are still written at machine code level Writing machine code is still time consuming
EXAMPLE;
Microprocessor language
INSTRUCTION FORMAT;
Assembly input Output machine Language program
Language Program
ASSEMBLER
They deal with the high level coding enabling the programmer to write instruction using ENGLISH words and famialar symbol & expression
Compiler;
High level language must be converted in to it equivalent machine language program, before it is exeucted.this traslation is done by a translator program known as COMPILER Compiler is a program which translates high level language into its equivalent machine language program A compiler can translates only those source of program which have been written in the language for which the compiler is meant e.g, FORTRON compiler is only cabable of translating source program written in fortran So each computer requires separate compiler for each high level language it supports.
INTERPRETER;
It is also used to translate High Level language to Machine Level Language. But it takes one statement at a timed, translates its and immediately executes the resulting machine language instruction. It translate 1 instruction at a time.
FORTRAN;
C language;
The language known as C is a fast and efficient language for many different computers and operating systems. Programmers often use C to write systems software, but many professional and commercial-quality applications also are written in C. Dennis Ritchie at Bell Laboratories originally designed C for the UNIX OS in the early 1970s. Support many data types so greater flexibility. Modular programming feature and it is rich in library functions.
Portable.
JAVA C++ Developed by Sun Microsystems. Used for internet based services, consumer electronics products like MOBILE PHONES, DVDS, etc. Java comes in two variants-JRE and Java SDK.
Java;
C++;
Developed by Bjarnj Stroustrup in 1979 at Bell Labs as an enhancement to the C programming language and originally named "C with Classes", it was renamed to C++ in 1983. Enhancements started with the addition of classes, templates. C++ is called because it is an operator in C, which increments numerical value by 1. Therefore, C language is incremented to its next level with C++.
NUMBER SYSTEMS; NUMBER SYSTEMS ARE OF TWO TYPES: 1)NON-POSITIONAL 2)POSITIONAL a) BINARY NUMBER SYSTEM b) OCTAL NUMBER SYSTEM c) HEXA DECIMAL NUMBER SYSTEM; CONVERTING FROM ONE NUMBER SYSTEM TO ANOTHER; DECIMAL TO BINARY CONVERSION; STEP 1:DIVIDE THE DECIMAL NUMBER BY TWO STEP 2:DIVIDE THE SUCCESSIVE QUOTIENTS BY TWO. STEP 3:TERMINATE THE DIVISION WHEN QUOTIENT BECOMES ZERO STEP 4:THE BINARY EQUIVALENT IS GIVEN BY SEQUENCE OF REMAINDERS. CONVERTING FROM ANOTHER BASE TO DECIMAL; STEP 1:DETERMINE THE COLUMN VALUE OF EACH DIGIT STEP 2:MULTIPLY THE OBTAINED VALUES BY THE DIGITS IN THE CORRESPONDING COLUMNS STEP 3:SUM UP THE PRODUCTS CALCULATED IN STEP 2.THE TOTAL IS THE EQUIVALENT VALUE IN DECIMAL. Characteristic of good programming language; Simplicity- Must be simple & easy to learn.
Naturalness- should be natural for the application area for which it is designed. Abstraction- Means ability to define & then use complicated structure or operations in ways that allow many of the details to be ignored. Efficiency- Good programming language are efficiently translated into machine codes, are efficiently executed and consumes less space in memory. Compactness- Programmer should be able to express intended operations concisely. Extensibility- should allow extension in future.
Thank you