SlideShare a Scribd company logo
3
Intro to Pascal Pascal is a general-purpose, high-level programming language Derived from Algol-60 Specifically designed to encourage the use of Structured Programming
Most read
16
Pascal Data Types More:  http://www.geocities.com/hotdogcom/ptutor/chap03.html
Most read
17
Variable declaration var    IdentifierList1   :   DataType1 ;    IdentifierList2   :   DataType2 ;    IdentifierList3   :   DataType3 ;    ...   var   age, year, grade : integer;   circumference : real;   LetterGrade : char;   DidYouFail : Boolean;
Most read
Pascal Programming http://ashesh.ramjeeawon.info Management Student/ Freelance Developer University of Mauritius Module Pre-Requisites: Problem-Solving Techniques Session 1: Pascal Fundamentals
Today’s Session Intro to Pascal History of Pascal Getting the tools (IDE/Compiler) The basic structure of a Pascal Program Identifiers Data Types Input and Output
Intro to Pascal Pascal is a general-purpose, high-level programming language Derived from Algol-60 Specifically designed to encourage the use of Structured Programming
Intro to Pascal Pascal was named in honour of Blaise Pascal (1623 – 1662) Brilliant French Scientist and Mathematician Invented the word’s first calculating machine (Pascaline)
History of Pascal Developed in the early 1970s by Niklaus Wirth at  The Technical University in Zurich, Switzerland
History of Pascal In 1983, Borland International began marketing of an inexpensive compiler called Turbo Pascal.
Getting the tools
Getting the tools Turbo Pascal for Windows Getting hands dirty with the IDE Installing the Turbo Pascal Code writing aids Compiling  Debugging Saving source code - .pas format CVS
The basic structure of a Pascal Program PROGRAM   ProgramName  ( FileList ) ; CONST    (* Constant declarations *) TYPE    (* Type declarations *) VAR    (* Variable declarations *) (* Subprogram definitions *) BEGIN    (* Executable statements *) END.
Exercise Time Open your IDE Create a complete “dummy” program Then save it on your desktop as Alpha.pas Note: No compilation is required Aim 1: to get hands dirty with the IDE  Aim 2: understand the structure of a Pascal Program
Identifiers Must begin with a letter from the English alphabet. Can be followed by alphanumeric characters (alphabetic characters and numerals) and possibly the underscore (_). May not contain certain special characters, many of which have special meanings in Pascal. ~ ! @ # $ % ^ & * ( ) + ` - = { } [ ] : &quot; ; ' < > ? , . / |
Identifiers
Pascal is  not  case sensitive!  Turbo Pascal allows you to write names with upper and lowercase letters. PART_NUMBER part_number PaRt_NumBer Part_Number Pascal would consider the above identifiers as the same.
Memory storage
Pascal Data Types The basic data types in Pascal include: integer real char Boolean
Pascal Data Types More:  http://www.geocities.com/hotdogcom/ptutor/chap03.html
Variable declaration var    IdentifierList1   :   DataType1 ;    IdentifierList2   :   DataType2 ;    IdentifierList3   :   DataType3 ;    ...   var   age, year, grade : integer;   circumference : real;   LetterGrade : char;   DidYouFail : Boolean;
Input and Output Input from keyboard Readln(var); Output to screen Writeln(‘Hello World!’);
The End – Thank you for your kind attention References: http://taoyue.com/tutorials/pascal/contents.html B. Gottfried, Programming with Pascal, 2 nd  Edition, McGrawHill
http://ashesh.ramjeeawon.info Blog:  http:// asheshr.wordpress.com Management Student/ Freelance Developer University of Mauritius BCS Student Member

More Related Content

What's hot (20)

functions of C++
functions of C++functions of C++
functions of C++
tarandeep_kaur
 
Control Flow Statements
Control Flow Statements Control Flow Statements
Control Flow Statements
Tarun Sharma
 
Loops in c
Loops in cLoops in c
Loops in c
baabtra.com - No. 1 supplier of quality freshers
 
Structures in c++
Structures in c++Structures in c++
Structures in c++
Swarup Boro
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
Dilum Bandara
 
Pointers in c++
Pointers in c++Pointers in c++
Pointers in c++
sai tarlekar
 
Union in C programming
Union in C programmingUnion in C programming
Union in C programming
Kamal Acharya
 
Arrays in c
Arrays in cArrays in c
Arrays in c
vampugani
 
C keywords and identifiers
C keywords and identifiersC keywords and identifiers
C keywords and identifiers
Akhileshwar Reddy Ankireddy
 
Switch case in C++
Switch case in C++Switch case in C++
Switch case in C++
Barani Govindarajan
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
fasihuddin90
 
Introduction to Basic C programming 01
Introduction to Basic C programming 01Introduction to Basic C programming 01
Introduction to Basic C programming 01
Wingston
 
Grade 10 ICT Short Notes in Sinhala(2015)
Grade 10 ICT Short Notes in Sinhala(2015)Grade 10 ICT Short Notes in Sinhala(2015)
Grade 10 ICT Short Notes in Sinhala(2015)
Mahesh Kodituwakku
 
Pseudocode
PseudocodePseudocode
Pseudocode
grahamwell
 
Embedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerEmbedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontroller
Gaurav Verma
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
Qazi Shahzad Ali
 
Pseudocode
PseudocodePseudocode
Pseudocode
Harsha Madushanka
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
Syed Zaid Irshad
 
C Programming: Structure and Union
C Programming: Structure and UnionC Programming: Structure and Union
C Programming: Structure and Union
Selvaraj Seerangan
 
Union in c language
Union  in c languageUnion  in c language
Union in c language
tanmaymodi4
 

Viewers also liked (20)

G.C.E O/L ICT Short Notes Grade-11
G.C.E O/L ICT Short Notes Grade-11G.C.E O/L ICT Short Notes Grade-11
G.C.E O/L ICT Short Notes Grade-11
Mahesh Kodituwakku
 
GCE O/L ICT
GCE O/L ICT GCE O/L ICT
GCE O/L ICT
Mahesh Kodituwakku
 
Pascal programming lecture notes
Pascal programming lecture notesPascal programming lecture notes
Pascal programming lecture notes
Alejandro Domínguez Torres
 
G.C.E. O/L ICT Lessons Database sinhala
 G.C.E. O/L ICT Lessons Database sinhala G.C.E. O/L ICT Lessons Database sinhala
G.C.E. O/L ICT Lessons Database sinhala
Mahesh Kodituwakku
 
ICT G.C.E O/L 2016 Model Paper
ICT G.C.E O/L 2016 Model PaperICT G.C.E O/L 2016 Model Paper
ICT G.C.E O/L 2016 Model Paper
Mahesh Kodituwakku
 
පරිගණකයේ විකාශය
පරිගණකයේ විකාශයපරිගණකයේ විකාශය
පරිගණකයේ විකාශය
Rajith Pemabandu
 
ICT Lessons in Sinhala
ICT Lessons in SinhalaICT Lessons in Sinhala
ICT Lessons in Sinhala
Mahesh Kodituwakku
 
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංගInput and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Mahesh Kodituwakku
 
දත්ත සහ තොරතුරු
දත්ත සහ තොරතුරුදත්ත සහ තොරතුරු
දත්ත සහ තොරතුරු
Tennyson
 
පරිගණක වර්ගීකරණය
පරිගණක වර්ගීකරණයපරිගණක වර්ගීකරණය
පරිගණක වර්ගීකරණය
Tennyson
 
GIT Model Paper
GIT Model PaperGIT Model Paper
GIT Model Paper
Mahesh Kodituwakku
 
Pascal tutorial
Pascal tutorialPascal tutorial
Pascal tutorial
hidden__
 
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
ඇල්ගොරිතම 11 ශ්‍රේණිය ICTඇල්ගොරිතම 11 ශ්‍රේණිය ICT
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
Mahesh Kodituwakku
 
G.C.E. A/L ICT
G.C.E. A/L ICTG.C.E. A/L ICT
G.C.E. A/L ICT
Mahesh Kodituwakku
 
Turbo pascal
Turbo pascalTurbo pascal
Turbo pascal
Vien Rivera
 
Pascal
PascalPascal
Pascal
Ivna Valença
 
ICT in Sinhala
ICT in SinhalaICT in Sinhala
ICT in Sinhala
Mahesh Kodituwakku
 
Linguagem de Programação Pascal
Linguagem de Programação PascalLinguagem de Programação Pascal
Linguagem de Programação Pascal
Marcus Vinicius
 
Programando com pascal
Programando com pascalProgramando com pascal
Programando com pascal
Ramon Souza
 
G.C.E A/L ICT Questions
G.C.E A/L ICT QuestionsG.C.E A/L ICT Questions
G.C.E A/L ICT Questions
Mahesh Kodituwakku
 
G.C.E O/L ICT Short Notes Grade-11
G.C.E O/L ICT Short Notes Grade-11G.C.E O/L ICT Short Notes Grade-11
G.C.E O/L ICT Short Notes Grade-11
Mahesh Kodituwakku
 
G.C.E. O/L ICT Lessons Database sinhala
 G.C.E. O/L ICT Lessons Database sinhala G.C.E. O/L ICT Lessons Database sinhala
G.C.E. O/L ICT Lessons Database sinhala
Mahesh Kodituwakku
 
ICT G.C.E O/L 2016 Model Paper
ICT G.C.E O/L 2016 Model PaperICT G.C.E O/L 2016 Model Paper
ICT G.C.E O/L 2016 Model Paper
Mahesh Kodituwakku
 
පරිගණකයේ විකාශය
පරිගණකයේ විකාශයපරිගණකයේ විකාශය
පරිගණකයේ විකාශය
Rajith Pemabandu
 
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංගInput and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Mahesh Kodituwakku
 
දත්ත සහ තොරතුරු
දත්ත සහ තොරතුරුදත්ත සහ තොරතුරු
දත්ත සහ තොරතුරු
Tennyson
 
පරිගණක වර්ගීකරණය
පරිගණක වර්ගීකරණයපරිගණක වර්ගීකරණය
පරිගණක වර්ගීකරණය
Tennyson
 
Pascal tutorial
Pascal tutorialPascal tutorial
Pascal tutorial
hidden__
 
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
ඇල්ගොරිතම 11 ශ්‍රේණිය ICTඇල්ගොරිතම 11 ශ්‍රේණිය ICT
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
Mahesh Kodituwakku
 
Linguagem de Programação Pascal
Linguagem de Programação PascalLinguagem de Programação Pascal
Linguagem de Programação Pascal
Marcus Vinicius
 
Programando com pascal
Programando com pascalProgramando com pascal
Programando com pascal
Ramon Souza
 
Ad

Similar to Pascal Programming Session 1 (20)

Apple IIgs Programming (K Fest)
Apple IIgs Programming (K Fest)Apple IIgs Programming (K Fest)
Apple IIgs Programming (K Fest)
Polymorph
 
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Adam Mukharil Bachtiar
 
typemap in Perl/XS
typemap in Perl/XS  typemap in Perl/XS
typemap in Perl/XS
charsbar
 
The use of the code analysis library OpenC++: modifications, improvements, er...
The use of the code analysis library OpenC++: modifications, improvements, er...The use of the code analysis library OpenC++: modifications, improvements, er...
The use of the code analysis library OpenC++: modifications, improvements, er...
PVS-Studio
 
Bioinformatics v2014 wim_vancriekinge
Bioinformatics v2014 wim_vancriekingeBioinformatics v2014 wim_vancriekinge
Bioinformatics v2014 wim_vancriekinge
Prof. Wim Van Criekinge
 
Introduction to perl_ a scripting language
Introduction to perl_ a scripting languageIntroduction to perl_ a scripting language
Introduction to perl_ a scripting language
Vamshi Santhapuri
 
Weird Plsql
Weird PlsqlWeird Plsql
Weird Plsql
webanddb
 
FINAL.ppt
FINAL.pptFINAL.ppt
FINAL.ppt
DeveshKatiyar5
 
01 intro-computer-pascal
01 intro-computer-pascal01 intro-computer-pascal
01 intro-computer-pascal
Serghei Urban
 
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Charitha Gamage
 
Scala presentationjune112011
Scala presentationjune112011Scala presentationjune112011
Scala presentationjune112011
PrasannaKumar Sathyanarayanan
 
Apache Spark Tutorial
Apache Spark TutorialApache Spark Tutorial
Apache Spark Tutorial
Ahmet Bulut
 
JAVA BASICS
JAVA BASICSJAVA BASICS
JAVA BASICS
VEERA RAGAVAN
 
Quick introduction to scala
Quick introduction to scalaQuick introduction to scala
Quick introduction to scala
Mohammad Hossein Rimaz
 
Apache Spark Tutorial
Apache Spark TutorialApache Spark Tutorial
Apache Spark Tutorial
Farzad Nozarian
 
Assignment1 B 0
Assignment1 B 0Assignment1 B 0
Assignment1 B 0
Mahmoud
 
Scala final ppt vinay
Scala final ppt vinayScala final ppt vinay
Scala final ppt vinay
Viplav Jain
 
I need help building a dictionary for the unique packets tha.pdf
I need help building a dictionary for the unique packets tha.pdfI need help building a dictionary for the unique packets tha.pdf
I need help building a dictionary for the unique packets tha.pdf
sukhvir71
 
Getting started with Perl XS and Inline::C
Getting started with Perl XS and Inline::CGetting started with Perl XS and Inline::C
Getting started with Perl XS and Inline::C
daoswald
 
What we can learn from Rebol?
What we can learn from Rebol?What we can learn from Rebol?
What we can learn from Rebol?
lichtkind
 
Apple IIgs Programming (K Fest)
Apple IIgs Programming (K Fest)Apple IIgs Programming (K Fest)
Apple IIgs Programming (K Fest)
Polymorph
 
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Adam Mukharil Bachtiar
 
typemap in Perl/XS
typemap in Perl/XS  typemap in Perl/XS
typemap in Perl/XS
charsbar
 
The use of the code analysis library OpenC++: modifications, improvements, er...
The use of the code analysis library OpenC++: modifications, improvements, er...The use of the code analysis library OpenC++: modifications, improvements, er...
The use of the code analysis library OpenC++: modifications, improvements, er...
PVS-Studio
 
Introduction to perl_ a scripting language
Introduction to perl_ a scripting languageIntroduction to perl_ a scripting language
Introduction to perl_ a scripting language
Vamshi Santhapuri
 
Weird Plsql
Weird PlsqlWeird Plsql
Weird Plsql
webanddb
 
01 intro-computer-pascal
01 intro-computer-pascal01 intro-computer-pascal
01 intro-computer-pascal
Serghei Urban
 
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Charitha Gamage
 
Apache Spark Tutorial
Apache Spark TutorialApache Spark Tutorial
Apache Spark Tutorial
Ahmet Bulut
 
Assignment1 B 0
Assignment1 B 0Assignment1 B 0
Assignment1 B 0
Mahmoud
 
Scala final ppt vinay
Scala final ppt vinayScala final ppt vinay
Scala final ppt vinay
Viplav Jain
 
I need help building a dictionary for the unique packets tha.pdf
I need help building a dictionary for the unique packets tha.pdfI need help building a dictionary for the unique packets tha.pdf
I need help building a dictionary for the unique packets tha.pdf
sukhvir71
 
Getting started with Perl XS and Inline::C
Getting started with Perl XS and Inline::CGetting started with Perl XS and Inline::C
Getting started with Perl XS and Inline::C
daoswald
 
What we can learn from Rebol?
What we can learn from Rebol?What we can learn from Rebol?
What we can learn from Rebol?
lichtkind
 
Ad

More from Ashesh R (18)

Sukhi parivaar web launch
Sukhi parivaar web launchSukhi parivaar web launch
Sukhi parivaar web launch
Ashesh R
 
Open source
Open sourceOpen source
Open source
Ashesh R
 
Web2.0
Web2.0Web2.0
Web2.0
Ashesh R
 
Linux
LinuxLinux
Linux
Ashesh R
 
Managing onlinebusiness
Managing onlinebusinessManaging onlinebusiness
Managing onlinebusiness
Ashesh R
 
Presentation on Gifts
Presentation on GiftsPresentation on Gifts
Presentation on Gifts
Ashesh R
 
Internet for everyone
Internet for everyoneInternet for everyone
Internet for everyone
Ashesh R
 
Influenza A H1 N1 Mexa
Influenza A H1 N1 MexaInfluenza A H1 N1 Mexa
Influenza A H1 N1 Mexa
Ashesh R
 
Internet Pour Tous
Internet Pour TousInternet Pour Tous
Internet Pour Tous
Ashesh R
 
Intellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian LegislationIntellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian Legislation
Ashesh R
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
Ashesh R
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Ashesh R
 
UML Case Tools
UML Case ToolsUML Case Tools
UML Case Tools
Ashesh R
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
Ashesh R
 
Cybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse CasesCybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse Cases
Ashesh R
 
National Geographic
National GeographicNational Geographic
National Geographic
Ashesh R
 
E Recruitment
E RecruitmentE Recruitment
E Recruitment
Ashesh R
 
Reflections
ReflectionsReflections
Reflections
Ashesh R
 
Sukhi parivaar web launch
Sukhi parivaar web launchSukhi parivaar web launch
Sukhi parivaar web launch
Ashesh R
 
Open source
Open sourceOpen source
Open source
Ashesh R
 
Managing onlinebusiness
Managing onlinebusinessManaging onlinebusiness
Managing onlinebusiness
Ashesh R
 
Presentation on Gifts
Presentation on GiftsPresentation on Gifts
Presentation on Gifts
Ashesh R
 
Internet for everyone
Internet for everyoneInternet for everyone
Internet for everyone
Ashesh R
 
Influenza A H1 N1 Mexa
Influenza A H1 N1 MexaInfluenza A H1 N1 Mexa
Influenza A H1 N1 Mexa
Ashesh R
 
Internet Pour Tous
Internet Pour TousInternet Pour Tous
Internet Pour Tous
Ashesh R
 
Intellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian LegislationIntellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian Legislation
Ashesh R
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
Ashesh R
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Ashesh R
 
UML Case Tools
UML Case ToolsUML Case Tools
UML Case Tools
Ashesh R
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
Ashesh R
 
Cybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse CasesCybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse Cases
Ashesh R
 
National Geographic
National GeographicNational Geographic
National Geographic
Ashesh R
 
E Recruitment
E RecruitmentE Recruitment
E Recruitment
Ashesh R
 
Reflections
ReflectionsReflections
Reflections
Ashesh R
 

Recently uploaded (20)

Ben Blair - Operating Safely in a Vibe Coding World
Ben Blair - Operating Safely in a Vibe Coding WorldBen Blair - Operating Safely in a Vibe Coding World
Ben Blair - Operating Safely in a Vibe Coding World
AWS Chicago
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Impelsys Inc.
 
How to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptxHow to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptx
Version 1 Analytics
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdfArtificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdfCrypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Cisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdfCisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdf
superdpz
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.
hok12341073
 
Secure Access with Azure Active Directory
Secure Access with Azure Active DirectorySecure Access with Azure Active Directory
Secure Access with Azure Active Directory
VICTOR MAESTRE RAMIREZ
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME FlowProviding an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
Domino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use CasesDomino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use Cases
panagenda
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry ReportThe State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
Ben Blair - Operating Safely in a Vibe Coding World
Ben Blair - Operating Safely in a Vibe Coding WorldBen Blair - Operating Safely in a Vibe Coding World
Ben Blair - Operating Safely in a Vibe Coding World
AWS Chicago
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Impelsys Inc.
 
How to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptxHow to Detect Outliers in IBM SPSS Statistics.pptx
How to Detect Outliers in IBM SPSS Statistics.pptx
Version 1 Analytics
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdfArtificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdfCrypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Cisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdfCisco ISE Performance, Scalability and Best Practices.pdf
Cisco ISE Performance, Scalability and Best Practices.pdf
superdpz
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.Introduction to Internet of things .ppt.
Introduction to Internet of things .ppt.
hok12341073
 
Secure Access with Azure Active Directory
Secure Access with Azure Active DirectorySecure Access with Azure Active Directory
Secure Access with Azure Active Directory
VICTOR MAESTRE RAMIREZ
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME FlowProviding an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
Domino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use CasesDomino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use Cases
panagenda
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry ReportThe State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 

Pascal Programming Session 1

  • 1. Pascal Programming http://ashesh.ramjeeawon.info Management Student/ Freelance Developer University of Mauritius Module Pre-Requisites: Problem-Solving Techniques Session 1: Pascal Fundamentals
  • 2. Today’s Session Intro to Pascal History of Pascal Getting the tools (IDE/Compiler) The basic structure of a Pascal Program Identifiers Data Types Input and Output
  • 3. Intro to Pascal Pascal is a general-purpose, high-level programming language Derived from Algol-60 Specifically designed to encourage the use of Structured Programming
  • 4. Intro to Pascal Pascal was named in honour of Blaise Pascal (1623 – 1662) Brilliant French Scientist and Mathematician Invented the word’s first calculating machine (Pascaline)
  • 5. History of Pascal Developed in the early 1970s by Niklaus Wirth at The Technical University in Zurich, Switzerland
  • 6. History of Pascal In 1983, Borland International began marketing of an inexpensive compiler called Turbo Pascal.
  • 8. Getting the tools Turbo Pascal for Windows Getting hands dirty with the IDE Installing the Turbo Pascal Code writing aids Compiling Debugging Saving source code - .pas format CVS
  • 9. The basic structure of a Pascal Program PROGRAM   ProgramName  ( FileList ) ; CONST    (* Constant declarations *) TYPE    (* Type declarations *) VAR    (* Variable declarations *) (* Subprogram definitions *) BEGIN    (* Executable statements *) END.
  • 10. Exercise Time Open your IDE Create a complete “dummy” program Then save it on your desktop as Alpha.pas Note: No compilation is required Aim 1: to get hands dirty with the IDE Aim 2: understand the structure of a Pascal Program
  • 11. Identifiers Must begin with a letter from the English alphabet. Can be followed by alphanumeric characters (alphabetic characters and numerals) and possibly the underscore (_). May not contain certain special characters, many of which have special meanings in Pascal. ~ ! @ # $ % ^ & * ( ) + ` - = { } [ ] : &quot; ; ' < > ? , . / |
  • 13. Pascal is  not  case sensitive! Turbo Pascal allows you to write names with upper and lowercase letters. PART_NUMBER part_number PaRt_NumBer Part_Number Pascal would consider the above identifiers as the same.
  • 15. Pascal Data Types The basic data types in Pascal include: integer real char Boolean
  • 16. Pascal Data Types More: http://www.geocities.com/hotdogcom/ptutor/chap03.html
  • 17. Variable declaration var    IdentifierList1   :   DataType1 ;    IdentifierList2   :   DataType2 ;    IdentifierList3   :   DataType3 ;    ... var   age, year, grade : integer;   circumference : real;   LetterGrade : char;   DidYouFail : Boolean;
  • 18. Input and Output Input from keyboard Readln(var); Output to screen Writeln(‘Hello World!’);
  • 19. The End – Thank you for your kind attention References: http://taoyue.com/tutorials/pascal/contents.html B. Gottfried, Programming with Pascal, 2 nd Edition, McGrawHill
  • 20. http://ashesh.ramjeeawon.info Blog: http:// asheshr.wordpress.com Management Student/ Freelance Developer University of Mauritius BCS Student Member