Prepared by: URVISH PATEL NISARG AMIN
2 Programming Languages • Programming languages specially developed so that you could pass your data and instructions to the computer to do specific job. • There are two major types of programming languages, Low Level Languages and High Level Languages. • Low Level languages are further divided in to Machine language and Assembly language. • High Level Languages are, for scientific application FORTRAN and C languages are used. On the other hand COBOL is used for business applications.
3 Machine Language • Machine Language is the only language that is directly understood by the computer. It does not needs any translator program • The only advantage is that program of machine language run very fast
4 Assembly Language • It is the first step to improve the programming structure. You should know that computer can handle numbers and letter. • The set of symbols and letters forms the Assembly Language and a translator program is required to translate the Assembly Language to machine language • This translator program is called `Assembler
Advantages: • Assembly Language is easier to understand and saves a lot of time and effort. • It is easier to correct errors and modify program instructions. • Assembly Language has the same efficiency of execution as the machine level language Disadvantages: • Assembly language is machine dependent. A program written for one computer might not run in other computers with different hardware configuration. 5
6 HIGH LEVEL LANGUAGES • Assembly and machine level languages require deep knowledge of computer hardware where as in higher language you have to know only the instructions in English words and logic of the problem. • Higher level languages are simple languages that use English and mathematical symbols like +, -, %, / etc. for its program construction
• Any higher level language has to be converted to machine language for the computer to understand. • For example COBOL (Common Business Oriented Language), FORTRAN (Formula Translation) and BASIC (Beginners All-purpose Symbolic Instruction Code) are high level languages. Advantages of High Level Languages • Higher level languages have a major advantage over machine and assembly languages that higher level languages are easy to learn and use (similar to the languages used by us in our day to day life. 7
Algorithms ALGORITHM: It is an ordered set of unambiguous steps that produces a result and terminates in a finite time.
BASIC ALGORITHMS Basic algorithms: – Summation – Product – Sorting – Searching
ALGORITHM REPRESENTATION FLOWCHART: -- A flowchart is a pictorial representation of an algorithm. -- It graphically depicts the logical steps to carry out a task and show how the steps relate to each other.
Example: Write an algorithm that finds the average of two numbers. Solution Steps: 1. Input: Two numbers 2. Add the two numbers 3. Divide the result by 2 4. Return the result by step 2 5. End
12 Flowchart symbols
13
14 Examples of Flowcharts 1)
15 Sequence Flowchart 2)
16 Decision flow chart 3)
17 Looping flow chart
18 Flowchart
19 Tips and tricks of flowcharts  Flowcharts are time-consuming to write and difficult to update  For this reason, professional programmers are more likely to favor pseudocode and hierarchy charts  Because flowcharts so clearly illustrate the logical flow of programming techniques, they are a valuable tool in the education of programmers
20 COMPILER • Compiler :It is a program translator that translates the instruction of a higher level language to machine language. • It is called compiler because it compiles machine language instructions for every program instructions of higher level language.
21 • Thus compiler is a program translator like assembler but more sophisticated. It scans the entire program first and then translates it into machine code. The programs written by the programmer in higher level language is called source program. After this program is converted to machine languages by the compiler it is called object program A compiler can translate only those source programs, which have been written, in that language
22 INTERPRETER • An interpreter is another type of program translator used for translating higher level language into machine language. • It takes one statement of higher level languages, translate it into machine language and immediately execute it. • Translation and execution are carried out for each statement. • It differs from compiler, which translate the entire source program into machine code.
• The advantage of interpreter compared to compiler is its fast response to changes in source program • Does not require large memory in computer. • The disadvantage of interpreter is that it is time consuming method because each time a statement in a program is executed then it is first translated. • Thus compiled machine language program runs much faster than an interpreted program. 23
24 LANGUAGE/ SOFTWARE
25 SOFTWARE Software refers to the set of computer programs, which are used in applications and operating systems. • It is the collection of programs, which increase the capabilities of the hardware. • Software guides the computer at every step where to start and stop during a particular job. • The process of software development is called programming.
26 TYPES OF SOFTWARE  Application Software : • Application Software is a set of programs for a specific application. • Application software is useful for word processing, accounting, producing statistical report, Graphics, Excel and Data Base. • programming languages COBOL, FORTRAN, C++, VB, VC, Java
 System Software: When you switch on the computer the programs written in ROM is executed which activates different units of your computer and makes it ready for you to work. • This set of programs can be called system software. • System software are general programs designed for performing tasks such as controlling all operations required to move data into and out of the computer • System Software allows application packages to be run on the computer. 27
28 • Computer manufactures build and supply this system software with the computer system. • DOS, UNIX and WINDOWS are some of the widely used operating system software. • Out of these UNIX is a multi-user operating system whereas DOS and WINDOWS are PC-based. • We will discuss in details DOS and WINDOWS in the next section.
THANK YOU

Programming languages,compiler,interpreter,softwares

  • 1.
    Prepared by: URVISHPATEL NISARG AMIN
  • 2.
    2 Programming Languages • Programming languages specially developed so that you could pass your data and instructions to the computer to do specific job. • There are two major types of programming languages, Low Level Languages and High Level Languages. • Low Level languages are further divided in to Machine language and Assembly language. • High Level Languages are, for scientific application FORTRAN and C languages are used. On the other hand COBOL is used for business applications.
  • 3.
    3 Machine Language • Machine Language is the only language that is directly understood by the computer. It does not needs any translator program • The only advantage is that program of machine language run very fast
  • 4.
    4 Assembly Language • It is the first step to improve the programming structure. You should know that computer can handle numbers and letter. • The set of symbols and letters forms the Assembly Language and a translator program is required to translate the Assembly Language to machine language • This translator program is called `Assembler
  • 5.
    Advantages: • AssemblyLanguage is easier to understand and saves a lot of time and effort. • It is easier to correct errors and modify program instructions. • Assembly Language has the same efficiency of execution as the machine level language Disadvantages: • Assembly language is machine dependent. A program written for one computer might not run in other computers with different hardware configuration. 5
  • 6.
    6 HIGH LEVELLANGUAGES • Assembly and machine level languages require deep knowledge of computer hardware where as in higher language you have to know only the instructions in English words and logic of the problem. • Higher level languages are simple languages that use English and mathematical symbols like +, -, %, / etc. for its program construction
  • 7.
    • Any higherlevel language has to be converted to machine language for the computer to understand. • For example COBOL (Common Business Oriented Language), FORTRAN (Formula Translation) and BASIC (Beginners All-purpose Symbolic Instruction Code) are high level languages. Advantages of High Level Languages • Higher level languages have a major advantage over machine and assembly languages that higher level languages are easy to learn and use (similar to the languages used by us in our day to day life. 7
  • 8.
    Algorithms ALGORITHM: Itis an ordered set of unambiguous steps that produces a result and terminates in a finite time.
  • 9.
    BASIC ALGORITHMS Basicalgorithms: – Summation – Product – Sorting – Searching
  • 10.
    ALGORITHM REPRESENTATION FLOWCHART: -- A flowchart is a pictorial representation of an algorithm. -- It graphically depicts the logical steps to carry out a task and show how the steps relate to each other.
  • 11.
    Example: Write analgorithm that finds the average of two numbers. Solution Steps: 1. Input: Two numbers 2. Add the two numbers 3. Divide the result by 2 4. Return the result by step 2 5. End
  • 12.
  • 13.
  • 14.
    14 Examples ofFlowcharts 1)
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
    19 Tips andtricks of flowcharts  Flowcharts are time-consuming to write and difficult to update  For this reason, professional programmers are more likely to favor pseudocode and hierarchy charts  Because flowcharts so clearly illustrate the logical flow of programming techniques, they are a valuable tool in the education of programmers
  • 20.
    20 COMPILER •Compiler :It is a program translator that translates the instruction of a higher level language to machine language. • It is called compiler because it compiles machine language instructions for every program instructions of higher level language.
  • 21.
    21 • Thuscompiler is a program translator like assembler but more sophisticated. It scans the entire program first and then translates it into machine code. The programs written by the programmer in higher level language is called source program. After this program is converted to machine languages by the compiler it is called object program A compiler can translate only those source programs, which have been written, in that language
  • 22.
    22 INTERPRETER •An interpreter is another type of program translator used for translating higher level language into machine language. • It takes one statement of higher level languages, translate it into machine language and immediately execute it. • Translation and execution are carried out for each statement. • It differs from compiler, which translate the entire source program into machine code.
  • 23.
    • The advantageof interpreter compared to compiler is its fast response to changes in source program • Does not require large memory in computer. • The disadvantage of interpreter is that it is time consuming method because each time a statement in a program is executed then it is first translated. • Thus compiled machine language program runs much faster than an interpreted program. 23
  • 24.
  • 25.
    25 SOFTWARE Softwarerefers to the set of computer programs, which are used in applications and operating systems. • It is the collection of programs, which increase the capabilities of the hardware. • Software guides the computer at every step where to start and stop during a particular job. • The process of software development is called programming.
  • 26.
    26 TYPES OFSOFTWARE  Application Software : • Application Software is a set of programs for a specific application. • Application software is useful for word processing, accounting, producing statistical report, Graphics, Excel and Data Base. • programming languages COBOL, FORTRAN, C++, VB, VC, Java
  • 27.
     System Software: When you switch on the computer the programs written in ROM is executed which activates different units of your computer and makes it ready for you to work. • This set of programs can be called system software. • System software are general programs designed for performing tasks such as controlling all operations required to move data into and out of the computer • System Software allows application packages to be run on the computer. 27
  • 28.
    28 • Computermanufactures build and supply this system software with the computer system. • DOS, UNIX and WINDOWS are some of the widely used operating system software. • Out of these UNIX is a multi-user operating system whereas DOS and WINDOWS are PC-based. • We will discuss in details DOS and WINDOWS in the next section.
  • 29.