Lecture-8 Introduction to computer languages.

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Evolution and History of Programming Languages Software/Hardware/System.
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
2 We need programming languages to communicate with a computer. The two broad classifications of programming languages are: Low-level and High- level.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Computers: Tools for an Information Age
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
Chapter 6: An Introduction to System Software and Virtual Machines
SOFTWARE SYSTEMS SOFTWARE APPLICATIONS SOFTWARE PROGRAMMING LANGUAGES.
ALGORITHMS AND PROGRAMMING LANGUAGES Lecture 5: Algorithms and programming languages Networks and Communication Department 1.
Chapter 6: An Introduction to System Software and Virtual Machines Invitation to Computer Science, C++ Version, Fourth Edition ** Re-ordered, Updated 4/14/09.
Your Interactive Guide to the Digital World Discovering Computers 2012.
1 Chapter-01 Introduction to Computers and C++ Programming.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Introduction to Computer Programming itc-314
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Course Introduction C++ An Introduction to Computing.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
Programming Language Rico Yu. Levels of Programming Languages 1.Low level languages 2.High level languages.
Evolution of Programming Languages Generations of PLs.
COMPUTER PROGRAMS AND LANGUAGES Chapter 4. Developing a computer program Programs are a set (series) of instructions Programmers determine The instructions.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
1 The Art of Programming Programming Languages Flowcharts.
Invitation to Computer Science 5 th Edition Chapter 6 An Introduction to System Software and Virtual Machine s.
Evolution and History of Programming Languages. Machine languages Assembly languages Higher-level languages To build programs, people use languages that.
Evolution and History of Programming Languages. Software Programming Language.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Chapter 5 Information Systems in Business Software
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
PROGRAMMING LANGUAGES
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Introduction to Computers Lesson 13B. home Syntax Programming language rules.
Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
CONCEPTS OF PROGRAMMING LANGUAGES
Slide 8-1 Chapter 8 Terms Programming Languages Introduction to Information Systems Judith C. Simon.
Introduction to Computer Programming itc-314 Lecture 04.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Programming Languages and the Programming Process lesson 28.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Compilers and Interpreters
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
CSC141 Introduction to Computer Programming Programming Language.
Programming Languages
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
 Human language : commonly used to express feeling and understand what other people expression.  Computer language : are a languages by which a user.
Computer Language
Evolution and History of Programming Languages
Programming Languages
Introduction to programming
Operating System Interface between a user and the computer hardware
Evolution and History of Programming Languages
CSCI-235 Micro-Computer Applications
Computer Programming.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Assembler, Compiler, Interpreter
Assembler, Compiler, Interpreter
1.3.7 High- and low-level languages and their translators
Presentation transcript:

Lecture-8 Introduction to computer languages. Topics: Introduction to computer languages. Low level languages High level languages Types of high and low level languages .

Section b introduction to system software and programs and introduction to computer networks

introduction to system software and programs

Programming languages The art of writing instructions for a computer to solve the specific task is known as programming. or A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks The output of programming is a well defined set of instructions. This is called a program A programming language is the medium of communication between the man and the machine. Computer languages are classified into two levels: Low level languages High level languages

Programming languages

Low level languages These are easily understood by computers. They are machine dependent languages. Programs written in these languages are not transferable from one computer to another. The machine language and assembly language are examples of low level languages.

MACHINE LANGUAGES As the name itself implies, programming is done at machine level. The vocabulary of computer consists of only two words ,zero and one. The digit of a binary number system. A 0 indicates low voltage level and 1 indicates high voltage level The machine level language is considered as a first generation language Any sequence of 0’s and 1’s forms an instruction in this langusge. For example: 1010101011 Each instruction has a specific format, consisting of two fields. First field is opcode and Second field is address

MACHINE LANGUAGES Opcode- (it stands for operation code). It indicates what operation is to be done .such as addition, subtraction, multiplication etc. Address –(memory location where in the data is referenced) The length of each instruction is 12 bits;4bit for opcode and 8bits for address. Instruction Format OPCODE ADDRESS 4 bits 8 bits

MACHINE LANGUAGES Advantages can be directly typed and executed No translator program is required. Disadvantages Difficult to remember machine instructions Difficult to understand , modify, and debug errors Difficult to remember address of data and instructions Each and every instruction is numerical

Translation by a Assembler Assembly language To overcome the drawbacks of the machine language ,computer engineers developed a new programming language which uses symbolic instructions. This symbolic instruction oriented programming language is known as assembly language. This is called as the second generation programming language. Object Program (machine language) Source Program (Assembly Program) Assembler Translation by a Assembler

For store at Accumulator Assembly language Symbolic words used in this language are referred to as mnemonics. The meaning of mnemonic is memory sake or to remember. For example, ADD For Addition SUB For Subtraction MUL For Multiplication STA For store at Accumulator HALT For Halt JMP For jump INR For increment and so on

Assembly LANGUAGES Advantages Easy to remember operation codes Easy to write the programs, modify and debug as compared to machine language. Need not remember addresses of operands and instruction locations Disadvantages The mnemonics are machine dependent. Not standardized. Less efficient than machine language.

high level languages Higher-level languages are more powerful than assembly language and allow the programmer to work in a more English-like environment. Higher-level programming languages are divided into three "generations," each more powerful than the last: Third-generation languages Fourth-generation languages Fifth-generation languages Source Program (HLL Language) Translator (Interpreter)/(Compiler) Object Program (Machine Language) Translation by Compiler to Interpreter

Higher-Level Languages - Third-Generation Languages Third-generation languages (3GLs) are the first to use true English-like phrasing, making them easier to use than previous languages. 3GLs are portable, meaning the object code created for one type of system can be translated for use on a different type of system. The following languages are 3GLs: FORTAN C COBOL C++ BASIC Java Pascal ActiveX

Higher-Level Languages - Fourth-Generation Languages Fourth-generation languages (4GLs) are even easier to use than 3GLs. 4GLs may use a text-based environment (like a 3GL) or may allow the programmer to work in a visual environment, using graphical tools. The following languages are 4GLs: Visual Basic (VB) VisualAge Authoring environments

Higher-Level Languages - Fifth-Generation Languages Fifth-generation languages (5GLs) are an issue of debate in the programming community – some programmers cannot agree that they even exist. These high-level languages would use artificial intelligence to create software, making 5GLs extremely difficult to develop. Solve problems using constraints rather than algorithms, used in Artificial Intelligence Prolog

ASSIGNMENT QUESTIONS Q1.What is machine language? Why is it required? Q2. differentiate between Low level language and high level language.