SlideShare a Scribd company logo
1 of 25
Prof. B. I. Khodanpur
HOD – Dept. of CSE
R. V. College of Engineering.
EmailID: bi.khodanpur@gmail.com
Subject: Computer Fundamentals (For EDUSAT)
Common Paper for BA / B.Com / B.Sc
Code: CS-54
Flow chart of the while loop :
Flow chart of the for loop:
The flow chart of the if statement:
The flow chart of the if…else statement:
The flow chart of the switch statement:
Flowchart for finding the sum of first five natural numbers (
i.e. 1,2,3,4,5):
Flowchart (Example):
Flowchart to find the sum of first 50 natural numbers.
Start
Read A, B
Is A > B
Print A
Print B
End
Yes No
Flow Chart to find largest of two numbers:
Flowchart to find the largest of
three numbers A,B, and C:
NO
LIMITATIONS OF USING
FLOWCHARTS:
 Complex logic: Sometimes, the program logic is quite
complicated. In that case, flowchart becomes complex
and clumsy.
 Alterations and Modifications: If alterations are
required the flowchart may require re-drawing
completely.
 Reproduction: As the flowchart symbols cannot be
typed, reproduction of flowchart becomes a problem.
Flowchart (Exercise):
1. Draw a flowchart to depict all steps that you do
reach your college.
2. Draw Flowchart for Linear search.
Contents
 Today's Topic: Computer Programming Languages
 We will learn
1. Computer Programming Languages.
2. Non-computational languages
3. Machine language
 Example
4. Assembly language
 Example
5. High level language
 Examples.
Computer Programming
Languages
Computer Programming
Languages:
 A programming language is an artificial language that
can be used to control the behavior of a machine,
particularly a computer
 Programming languages, like human languages, are
defined through the use of syntactic and semantic rules,
to determine structure and meaning respectively.
Computer Programming
Languages (Contd…):
 Programming languages are used to facilitate
communication about the task of organizing and
manipulating information, and to express algorithms
precisely.
 For 50 years, computer programmers have been writing
code. New technologies continue to emerge, develop,
and mature at a rapid pace. Now there are more than
2,500 documented programming languages!
Non-computational
languages:
 Non-computational languages, such as markup
languages like HTML or formal grammars like BNF, are
usually not considered programming languages.
 Often a programming language is embedded in the non-
computational language.
Machine language:
• It is the lowest-level programming language.
• Machine languages are the only languages
understood by computers.
Machine language:
 While easily understood by computers, machine
languages are almost impossible for humans to use
because they consist entirely of numbers.
For example, an x86/IA-32 processor can execute the
following binary instruction as expressed in machine
language:
Binary: 10110000 01100001 (Hexadecimal: 0xb061)
Assembly Level Language:
 An assembly language is a low-level language for
programming computers.
 The word "low" does not imply that the language is
inferior to high-level programming languages but rather
refers to the small or nonexistent amount of abstraction
between the language and machine language, because
of this, low-level languages are sometimes described as
being "close to the hardware."
 It implements a symbolic representation of the numeric
machine codes and other constants needed to program
a particular CPU architecture.
Assembly Level
Language (contd…):
 A utility program called an assembler, is used to translate assembly
language statements into the target computer's machine code.
 The assembler performs a more or less isomorphic translation (a one-to-
one mapping) from mnemonic statements into machine instructions and
data.
Example: Assembly language representation is easier to remember
(more mnemonic)
mov al, 061h
This instruction means:
Move the hexadecimal value 61 (97 decimal) into the processor register
named "al".
The mnemonic "mov" is an operation code or opcode, A comma-separated
list of arguments or parameters follows the opcode;
Example (Adds 2 numbers):
name "add"
mov al, 5 ; bin=00000101b
mov bl, 10 ; hex=0ah or bin=00001010b
add bl, al ; 5 + 10 = 15 (decimal) or hex=0fh or
bin=00001111b
High-level language:
 High-level languages are relatively easy to learn
because the instructions bear a close resemblance to
everyday language, and because the programmer does
not require a detailed knowledge of the internal workings
of the computer.
 Each instruction in a high-level language is equivalent to
several machine-code instructions, therefore it is more
compact than equivalent low-level programs.
 High-level languages are used to solve problems and
are often described as problem-oriented languages
High-level language
(Contd…):
Examples of HLL:
 BASIC was designed to be easily learnt by first-time
programmers;
 COBOL is used to write programs solving business problems;
 FORTRAN is used for programs solving scientific and
mathematical problems.
 With the increasing popularity of windows-based systems, the
next generation of programming languages was designed to
facilitate the development of GUI interfaces;
for example, Visual Basic wraps the BASIC language in a
graphical programming environment.
 Support for object-oriented programming has also become
more common, for example in C++ and Java.
Example (C program to add 2
numbers):
#include<stdio.h> //header files
Void main()
{
int a, b, c; // declaration of 3 variables
printf(“Enter two numbers:n”);
Scanf(“%d”, &a); // read 1st number
Scanf(“%d”, &b); // read 2nd number
c=a+b; // compute the sum
printf(“Sum of 2 numbers is %d”, c); //print sum
}

More Related Content

What's hot

Chap 1-language processor
Chap 1-language processorChap 1-language processor
Chap 1-language processorshindept123
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languagespy7rjs
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Programming language
Programming languageProgramming language
Programming languageShuja Qais
 
Program & language generation
Program & language generationProgram & language generation
Program & language generationBuxoo Abdullah
 
Compiler Design Basics
Compiler Design BasicsCompiler Design Basics
Compiler Design BasicsAkhil Kaushik
 
Generations of programming_language.kum_ari11-1-1-1
Generations of programming_language.kum_ari11-1-1-1Generations of programming_language.kum_ari11-1-1-1
Generations of programming_language.kum_ari11-1-1-1lakshmi kumari neelapu
 
International journal of compiling
International journal of compilingInternational journal of compiling
International journal of compilingAndivann
 
Toy compiler
Toy compilerToy compiler
Toy compilerhome
 
Compiler question bank
Compiler question bankCompiler question bank
Compiler question bankArthyR3
 

What's hot (17)

Computer programming languages
Computer programming languagesComputer programming languages
Computer programming languages
 
Chap 1-language processor
Chap 1-language processorChap 1-language processor
Chap 1-language processor
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languages
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Programming language
Programming languageProgramming language
Programming language
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
 
Compiler Design Basics
Compiler Design BasicsCompiler Design Basics
Compiler Design Basics
 
Generations of programming_language.kum_ari11-1-1-1
Generations of programming_language.kum_ari11-1-1-1Generations of programming_language.kum_ari11-1-1-1
Generations of programming_language.kum_ari11-1-1-1
 
International journal of compiling
International journal of compilingInternational journal of compiling
International journal of compiling
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Toy compiler
Toy compilerToy compiler
Toy compiler
 
Compiler question bank
Compiler question bankCompiler question bank
Compiler question bank
 
Assignment on basic programming language
Assignment on  basic programming languageAssignment on  basic programming language
Assignment on basic programming language
 
Presentation1
Presentation1Presentation1
Presentation1
 
Compilers Design
Compilers DesignCompilers Design
Compilers Design
 

Similar to Computer programming languages19 09-2007

C++ programming languages lectures
C++ programming languages lectures C++ programming languages lectures
C++ programming languages lectures jabirMemon
 
Introduction To Computer Programming
Introduction To Computer ProgrammingIntroduction To Computer Programming
Introduction To Computer ProgrammingHussain Buksh
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computerzaheeriqbal41
 
Chapter1 Introduction of compiler
Chapter1 Introduction of compiler Chapter1 Introduction of compiler
Chapter1 Introduction of compiler Danish Alam
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Sehrish Rafiq
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxChewe Lulembo
 
computerprogramminglanguages-201216152310.pptx
computerprogramminglanguages-201216152310.pptxcomputerprogramminglanguages-201216152310.pptx
computerprogramminglanguages-201216152310.pptxSubramanian Mani
 
Introduction to C Programming Language.pptx
Introduction to C Programming Language.pptxIntroduction to C Programming Language.pptx
Introduction to C Programming Language.pptxAnithaTAssistantProf
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Programming languages
Programming languagesProgramming languages
Programming languagesgaurav jain
 
week 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptxweek 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptxnuruddinnnaim
 
Lecture1 compilers
Lecture1 compilersLecture1 compilers
Lecture1 compilersAftab Ahmad
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Chao-Lung Yang
 

Similar to Computer programming languages19 09-2007 (20)

Fundamentals of Programming Chapter 2
Fundamentals of Programming Chapter 2Fundamentals of Programming Chapter 2
Fundamentals of Programming Chapter 2
 
C++ programming languages lectures
C++ programming languages lectures C++ programming languages lectures
C++ programming languages lectures
 
Introduction To Computer Programming
Introduction To Computer ProgrammingIntroduction To Computer Programming
Introduction To Computer Programming
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
Chapter1 Introduction of compiler
Chapter1 Introduction of compiler Chapter1 Introduction of compiler
Chapter1 Introduction of compiler
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
Computer programming
Computer programmingComputer programming
Computer programming
 
computerprogramminglanguages-201216152310.pptx
computerprogramminglanguages-201216152310.pptxcomputerprogramminglanguages-201216152310.pptx
computerprogramminglanguages-201216152310.pptx
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
Introduction to C Programming Language.pptx
Introduction to C Programming Language.pptxIntroduction to C Programming Language.pptx
Introduction to C Programming Language.pptx
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
C.pdf
C.pdfC.pdf
C.pdf
 
week 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptxweek 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptx
 
Lecture1 compilers
Lecture1 compilersLecture1 compilers
Lecture1 compilers
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 

Computer programming languages19 09-2007

  • 1. Prof. B. I. Khodanpur HOD – Dept. of CSE R. V. College of Engineering. EmailID: bi.khodanpur@gmail.com Subject: Computer Fundamentals (For EDUSAT) Common Paper for BA / B.Com / B.Sc Code: CS-54
  • 2. Flow chart of the while loop :
  • 3. Flow chart of the for loop:
  • 4. The flow chart of the if statement:
  • 5. The flow chart of the if…else statement:
  • 6. The flow chart of the switch statement:
  • 7. Flowchart for finding the sum of first five natural numbers ( i.e. 1,2,3,4,5):
  • 8. Flowchart (Example): Flowchart to find the sum of first 50 natural numbers.
  • 9. Start Read A, B Is A > B Print A Print B End Yes No Flow Chart to find largest of two numbers:
  • 10. Flowchart to find the largest of three numbers A,B, and C: NO
  • 11. LIMITATIONS OF USING FLOWCHARTS:  Complex logic: Sometimes, the program logic is quite complicated. In that case, flowchart becomes complex and clumsy.  Alterations and Modifications: If alterations are required the flowchart may require re-drawing completely.  Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem.
  • 12. Flowchart (Exercise): 1. Draw a flowchart to depict all steps that you do reach your college. 2. Draw Flowchart for Linear search.
  • 13. Contents  Today's Topic: Computer Programming Languages  We will learn 1. Computer Programming Languages. 2. Non-computational languages 3. Machine language  Example 4. Assembly language  Example 5. High level language  Examples.
  • 15. Computer Programming Languages:  A programming language is an artificial language that can be used to control the behavior of a machine, particularly a computer  Programming languages, like human languages, are defined through the use of syntactic and semantic rules, to determine structure and meaning respectively.
  • 16. Computer Programming Languages (Contd…):  Programming languages are used to facilitate communication about the task of organizing and manipulating information, and to express algorithms precisely.  For 50 years, computer programmers have been writing code. New technologies continue to emerge, develop, and mature at a rapid pace. Now there are more than 2,500 documented programming languages!
  • 17. Non-computational languages:  Non-computational languages, such as markup languages like HTML or formal grammars like BNF, are usually not considered programming languages.  Often a programming language is embedded in the non- computational language.
  • 18. Machine language: • It is the lowest-level programming language. • Machine languages are the only languages understood by computers.
  • 19. Machine language:  While easily understood by computers, machine languages are almost impossible for humans to use because they consist entirely of numbers. For example, an x86/IA-32 processor can execute the following binary instruction as expressed in machine language: Binary: 10110000 01100001 (Hexadecimal: 0xb061)
  • 20. Assembly Level Language:  An assembly language is a low-level language for programming computers.  The word "low" does not imply that the language is inferior to high-level programming languages but rather refers to the small or nonexistent amount of abstraction between the language and machine language, because of this, low-level languages are sometimes described as being "close to the hardware."  It implements a symbolic representation of the numeric machine codes and other constants needed to program a particular CPU architecture.
  • 21. Assembly Level Language (contd…):  A utility program called an assembler, is used to translate assembly language statements into the target computer's machine code.  The assembler performs a more or less isomorphic translation (a one-to- one mapping) from mnemonic statements into machine instructions and data. Example: Assembly language representation is easier to remember (more mnemonic) mov al, 061h This instruction means: Move the hexadecimal value 61 (97 decimal) into the processor register named "al". The mnemonic "mov" is an operation code or opcode, A comma-separated list of arguments or parameters follows the opcode;
  • 22. Example (Adds 2 numbers): name "add" mov al, 5 ; bin=00000101b mov bl, 10 ; hex=0ah or bin=00001010b add bl, al ; 5 + 10 = 15 (decimal) or hex=0fh or bin=00001111b
  • 23. High-level language:  High-level languages are relatively easy to learn because the instructions bear a close resemblance to everyday language, and because the programmer does not require a detailed knowledge of the internal workings of the computer.  Each instruction in a high-level language is equivalent to several machine-code instructions, therefore it is more compact than equivalent low-level programs.  High-level languages are used to solve problems and are often described as problem-oriented languages
  • 24. High-level language (Contd…): Examples of HLL:  BASIC was designed to be easily learnt by first-time programmers;  COBOL is used to write programs solving business problems;  FORTRAN is used for programs solving scientific and mathematical problems.  With the increasing popularity of windows-based systems, the next generation of programming languages was designed to facilitate the development of GUI interfaces; for example, Visual Basic wraps the BASIC language in a graphical programming environment.  Support for object-oriented programming has also become more common, for example in C++ and Java.
  • 25. Example (C program to add 2 numbers): #include<stdio.h> //header files Void main() { int a, b, c; // declaration of 3 variables printf(“Enter two numbers:n”); Scanf(“%d”, &a); // read 1st number Scanf(“%d”, &b); // read 2nd number c=a+b; // compute the sum printf(“Sum of 2 numbers is %d”, c); //print sum }