Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
9 views
Programming Languages
About computer
Uploaded by
Vimalan Kiruthiyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Programming Languages For Later
Download
Save
Save Programming Languages For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
9 views
Programming Languages
About computer
Uploaded by
Vimalan Kiruthiyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Programming Languages For Later
Carousel Previous
Carousel Next
Save
Save Programming Languages For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 26
Search
Fullscreen
What is a computer Program? Oo A computer program is a sequence of instructions written using a Computer programming Language to perform a specified task by the computer. O These programs makethecomputer understand the user’s requirements, the function to be performed and the output to be given to theuser.Uses of Computer Programs Today computer programs are being usedin almost every field, household, agriculture, medical, entertainment, defense, communication, etc. a MS Word, MS Excel, Adobe Photoshop, Internet Explorer, | Chrome, etc., are examples of computer programs. @ Computer programs are being used to develop graphics and special effects in moviemaking. a Computer programs are being used to perform Ultrasounds, XRays, and other medical examinations. Computer programs are being used in our mobile phones for SMS,Chat, and voice communication.Why we need Programming Languages? ® Tn general you communicate with humans by using natural languages such as Sinhala, Tamil, English and so forth. If you want to communicate with a machine lie a Computer, you cannot use such languages. Language known as programming languages can be used to instruct computers.Different types of programming languages a Machine level language a Assembly level language a High level languageMachine Level Language Q Machine level languageis the only language understood by computers. Q Programentirely consists of binary numbers (0’sand I’s). Q Machine language instruction hastwo parts. —Eg. 0000101 00001000 L Ly — Operation code: ‘Operand : ADD 8 Suchasaddition That identify the or subtraction data to be Q Computer program vwaitten lising any language should be translated to machine language before execute.Assembly Level Language Q Symbolic operation codes replaced binary operation codes. —Eg. ADDA: RepresentAddition a Assemblers convert assembly programs to machine code. a Easierto write.oocad High Level Language Instructions closer to everydayEnglish. It is easy to understand and write the program. Eg. BASICCOBOLFORIRAN,C Java, Visual Basic, etc. Following is a simple program written in C programming language. /* Hello World program */ #includecstdio.h> main() print#("Hello World");Home work a Find out advantages and disadvantages of different types of programming languages. td cy ey hen Machine Level Language Assembly Level Language High Level LanguageLanguage Processors / Translators Computers can understand only one language. It is known as machine language. However humans are not familiar with the machine language. So you have to specify your idea using a high level programming language first. Then translate it into machinelanguage.Language Processors / Translators Q In order to convert the High level Language to Machine Level language, Language Processors are used. Q Language processors are two types. - Compilers - InterpretersCompiler Q Compiler translates the entire program code from the language it is written in, into machine level language. Q This process of conversion from text formatted program to binary format file is called program compilation. a If you are going to write your program in any such language, which needs compilation like C, CH, Java and Pascal, etc., then you will need to install their compilers before you start programmingComputer Program File Computer Binary File Program ExecutionInterpreter a An interpreter translates program code to machine level language on line by line basis. Program ExecutionDifference between an interpreter and compiler eres ‘Transiate program one statement at a time. It takes less amount of time to analyze! the source code but the overall ‘execution time is slower. No intermediate object code (Binary File) is generated ores Scans the entire program and translate it as a whole into machine code. It takes large amount of time to analyze the source code but overall execution time is comparatively faster. Generates intermediate object code (Binary file) Continues translating the program Until the first error is met, in which caseit stops. Hence debugging is easy. It generates the error messageonly after scanning whole program. Programming language like Python, Ruby, PHPuse this Programming language like C,C+ use Compilers.Processing a High-Level Language Program Source program created with an editor Source code translated into machine language by compiler a Results in a .obj file (object code) Linker combines common library routines with object code Q Resultsin a.exe file (executable code) Loader brings executable code into memory and it is run Step 4 Step 2 Step 3 step step 5Integrated Development Environment (IDE) An Integrated Development Environment (IDE) is a software application that provides a comprehensive environment for developers to write, test, and debug code. It integrates various tools required for software development into a single interface, streamlining the development processExample IDEs Pee ets Cand C++ Python a Code::Blocks, Dev-C++, Qdeveloper, MonoDevelop NetBeans, Bluel, Eclipse, Greenfoot, Jdeveloper, Xcode, Visual J++ Aptana,NetBeans.Kdevelop, PhpStorm ‘Erie, Wing IDE, Light Table, Kdevelop, Ninja-IDE Delphi IDE, LazarusComponents of a programming language a English has a predefined grammar, which needs to be followed to write English statements in a correct way. Q Likewise, most of the Human Languages (Tami, Hindi, English, etc.) are made of several elements like verbs, nouns, adjectives, adverbs, propositions, and conjunctions, etc. a Similar to that Computer Pro ing Languagesare also made of basicthree elements.Components of a programming language Q Vocabulary G Acollection of terms valid for the language. U2 It consists of preserved words provided by the language and user definedterms. a Syntax U Definesthe rules and guidelines for constructing sentences or instructions. a Semantics The meaning of the language instructionsSteps to Develop a Program Q Developing a program involves steps similar to any problem solving task. Q There are five main ingredients in the programming process. «sDefining the problem «Planning the solution «Coding the problem «Testing the program «Documenting the programDefining the Problem Q Defining the problem consists of identifying what is known and what is wanted to obtain. a Eventually, the programmer produces a written agreement that, among other things, specifies the kind of input, processing and output required.Planning the solution a This is the stage where you decide how your program will work to meet the decisions you made during defining the problem. a In this phase you simply write down the steps in the correct order, that you are required to perform, to solvethe problem. a When all these steps are put together you have what is called anAlgorithm.What is an Algorithm? a Analgorithm is a complete step-by-step procedure for solving aproblem or accomplishing a task. a Algorithms canbe represent by using 2 Flowcharts. 2 Pseudo Codes.What is an Algorithm? Thefollowing isanalgorithm for makinga cupof tea. 1. Fillthe kettle with water. 2. Boil the water in thekettle. 3. Putthe teabag in acup. 4. Poursome of the boiled water into the cup. 5. Addmilk to the cup. . Add sugarto the cup. Stir the tea.Exercise Write algorithms for following problems. © Find some of two numbers © Find area of tringles and display it © Findthe largest from giventwo numbers and display the largestnumber.
You might also like
Module 1 and 2 CE Computer Fundamentals Programming
PDF
100% (5)
Module 1 and 2 CE Computer Fundamentals Programming
77 pages
Lesson 2 the Art of Problem Solving
PDF
No ratings yet
Lesson 2 the Art of Problem Solving
64 pages
Lesson 2 - The Art of Problem Solving
PDF
No ratings yet
Lesson 2 - The Art of Problem Solving
64 pages
Chapter
PDF
No ratings yet
Chapter
25 pages
Introduction To Computer Program: Computer Programming - Quick Guide
PDF
No ratings yet
Introduction To Computer Program: Computer Programming - Quick Guide
97 pages
Fundamental of Computer Programming - 1
PDF
No ratings yet
Fundamental of Computer Programming - 1
15 pages
Computer Programming
PDF
No ratings yet
Computer Programming
6 pages
chapter 11 intro to programming_241209_154644
PDF
No ratings yet
chapter 11 intro to programming_241209_154644
40 pages
Computer Programming - Quick Guide
PDF
No ratings yet
Computer Programming - Quick Guide
62 pages
c
PDF
No ratings yet
c
4 pages
Algorithm
PDF
No ratings yet
Algorithm
21 pages
Week01 Intro to Programming Language 2025
PDF
No ratings yet
Week01 Intro to Programming Language 2025
37 pages
CSE 021 - Lec03 - Programming Basics - 09.11.21
PDF
No ratings yet
CSE 021 - Lec03 - Programming Basics - 09.11.21
48 pages
Perl
PDF
No ratings yet
Perl
20 pages
359子情 - 4 - 1 en
PDF
No ratings yet
359子情 - 4 - 1 en
18 pages
Unit 1
PDF
No ratings yet
Unit 1
45 pages
Module 1 - Programming Basics and Logic
PDF
No ratings yet
Module 1 - Programming Basics and Logic
13 pages
Slide Set - 06
PDF
No ratings yet
Slide Set - 06
54 pages
Chapter One (PSPD)
PDF
No ratings yet
Chapter One (PSPD)
52 pages
2 Semester 1439-1440 H
PDF
No ratings yet
2 Semester 1439-1440 H
37 pages
PPS UNIT-1
PDF
No ratings yet
PPS UNIT-1
45 pages
Lesson 1 - Intro To Programming
PDF
No ratings yet
Lesson 1 - Intro To Programming
27 pages
Lec01 Programming Fundamentals
PDF
0% (1)
Lec01 Programming Fundamentals
40 pages
Lecture 01 Introduction To Programming
PDF
No ratings yet
Lecture 01 Introduction To Programming
35 pages
CSC 208 NOTE-1
PDF
No ratings yet
CSC 208 NOTE-1
21 pages
Programming Lecture 01
PDF
No ratings yet
Programming Lecture 01
54 pages
Summary and Conclusion 2
PDF
No ratings yet
Summary and Conclusion 2
59 pages
UNIT1 - 4types of Programming Languages
PDF
No ratings yet
UNIT1 - 4types of Programming Languages
23 pages
Programming
PDF
No ratings yet
Programming
37 pages
COMP102-Introduction-to-programming-Slides_160380
PDF
No ratings yet
COMP102-Introduction-to-programming-Slides_160380
36 pages
PROGRAMMING-
PDF
No ratings yet
PROGRAMMING-
15 pages
6unit5 CS_Word_20250130_18.33.13
PDF
No ratings yet
6unit5 CS_Word_20250130_18.33.13
20 pages
IT102-LecturePresentation 3
PDF
No ratings yet
IT102-LecturePresentation 3
59 pages
Section A
PDF
No ratings yet
Section A
32 pages
Lecture 3. Introduction To Programming Using C++
PDF
No ratings yet
Lecture 3. Introduction To Programming Using C++
42 pages
Module 1 Day 2 - Programs PLs Compilers
PDF
No ratings yet
Module 1 Day 2 - Programs PLs Compilers
17 pages
Unit 1
PDF
No ratings yet
Unit 1
49 pages
Introduction To Computer Programming
PDF
No ratings yet
Introduction To Computer Programming
13 pages
Lecture 3
PDF
No ratings yet
Lecture 3
34 pages
Chapter 1
PDF
No ratings yet
Chapter 1
17 pages
What Is A Computer?: Software
PDF
No ratings yet
What Is A Computer?: Software
24 pages
SPM 2102 Programming Language 1
PDF
No ratings yet
SPM 2102 Programming Language 1
9 pages
Programming Languages:-What Is A Program?: Hassan Zulfiqar Haider 0323414090
PDF
No ratings yet
Programming Languages:-What Is A Program?: Hassan Zulfiqar Haider 0323414090
3 pages
1.1 Section 1 - WPS Office
PDF
No ratings yet
1.1 Section 1 - WPS Office
8 pages
10th Class Notes Full BOOK
PDF
No ratings yet
10th Class Notes Full BOOK
93 pages
Programming Concepts
PDF
No ratings yet
Programming Concepts
37 pages
Programming: (Autonomous) Shamshabad - 501 218, Hyderabad
PDF
No ratings yet
Programming: (Autonomous) Shamshabad - 501 218, Hyderabad
172 pages
Unit One: Introduction To Programming
PDF
No ratings yet
Unit One: Introduction To Programming
43 pages
ModuleS 1-5 CE Computer Fundamentals Programming
PDF
No ratings yet
ModuleS 1-5 CE Computer Fundamentals Programming
114 pages
Programming Languages
PDF
No ratings yet
Programming Languages
39 pages
Lis 109
PDF
No ratings yet
Lis 109
4 pages
Introtoprogramming 200909194032
PDF
No ratings yet
Introtoprogramming 200909194032
43 pages
Day_1 C-Programming
PDF
No ratings yet
Day_1 C-Programming
23 pages
Exit Exam Tutorial #1-2
PDF
No ratings yet
Exit Exam Tutorial #1-2
110 pages
Introduction To Computer
PDF
No ratings yet
Introduction To Computer
48 pages
Intro To Programming EC201 Fundamental Programming
PDF
No ratings yet
Intro To Programming EC201 Fundamental Programming
10 pages
Form 4G/ 4A: Prepared By: O. Hibbert
PDF
No ratings yet
Form 4G/ 4A: Prepared By: O. Hibbert
21 pages
python moule 1
PDF
No ratings yet
python moule 1
113 pages
Programming Language
PDF
No ratings yet
Programming Language
39 pages