SlideShare a Scribd company logo
16
Most read
17
Most read
20
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

PDF
Grade 10 1st Term IT Notes
Navinda Dissanayake
 
PDF
Pascal programming language
Mahesh Kodituwakku
 
PPTX
Unit1 principle of programming language
Vasavi College of Engg
 
PPTX
Algorithm and pseudo codes
hermiraguilar
 
PPTX
Number System (Binary,octal,Decimal,Hexadecimal)
Durgesh Sahu
 
PPTX
Pascal Programming Language
Reham AlBlehid
 
PDF
පරිගණක පරිණාමය Evolution of Computer sinhala
Prabath Jayawardena
 
PDF
දත්ත ගැලීම් සටහන් Data Flow Diagram (DFD) සහ සන්ධර්භ රූප සටහන ( Context DFD )
Mahesh Kodituwakku
 
Grade 10 1st Term IT Notes
Navinda Dissanayake
 
Pascal programming language
Mahesh Kodituwakku
 
Unit1 principle of programming language
Vasavi College of Engg
 
Algorithm and pseudo codes
hermiraguilar
 
Number System (Binary,octal,Decimal,Hexadecimal)
Durgesh Sahu
 
Pascal Programming Language
Reham AlBlehid
 
පරිගණක පරිණාමය Evolution of Computer sinhala
Prabath Jayawardena
 
දත්ත ගැලීම් සටහන් Data Flow Diagram (DFD) සහ සන්ධර්භ රූප සටහන ( Context DFD )
Mahesh Kodituwakku
 

What's hot (20)

PPTX
Instruction Set Architecture: MIPS
Prasenjit Dey
 
PPS
Chapter #1 overview of programming and problem solving
Abdul Shah
 
PPTX
Flags registers
saman Iftikhar
 
PDF
Pascal programming lecture notes
Alejandro Domínguez Torres
 
PPTX
Computer architecture and organization
Tushar B Kute
 
PPTX
Introduction to C programming
Rokonuzzaman Rony
 
PPTX
C if else
Ritwik Das
 
PPTX
Types of Instruction Format
Dhrumil Panchal
 
PDF
Loops and conditional statements
Saad Sheikh
 
PPTX
MIPS Assembly Language I
LiEdo
 
PDF
Resume Preparation - Workshop
Emertxe Information Technologies Pvt Ltd
 
PPTX
Loops c++
Shivani Singh
 
PPTX
Introduction to Pseudocode
Damian T. Gordon
 
PPTX
computer Architecture
umardanjumamaiwada
 
PPTX
8086 Interrupts & With DOS and BIOS by vijay
Vijay Kumar
 
PPT
Registers
Sahil Bansal
 
PPTX
Loops in C
Kamal Acharya
 
PPTX
computer organization and assembly language Lec 01 coal_introduction
Zia3130
 
PPTX
Register introduction
maamir farooq
 
Instruction Set Architecture: MIPS
Prasenjit Dey
 
Chapter #1 overview of programming and problem solving
Abdul Shah
 
Flags registers
saman Iftikhar
 
Pascal programming lecture notes
Alejandro Domínguez Torres
 
Computer architecture and organization
Tushar B Kute
 
Introduction to C programming
Rokonuzzaman Rony
 
C if else
Ritwik Das
 
Types of Instruction Format
Dhrumil Panchal
 
Loops and conditional statements
Saad Sheikh
 
MIPS Assembly Language I
LiEdo
 
Resume Preparation - Workshop
Emertxe Information Technologies Pvt Ltd
 
Loops c++
Shivani Singh
 
Introduction to Pseudocode
Damian T. Gordon
 
computer Architecture
umardanjumamaiwada
 
8086 Interrupts & With DOS and BIOS by vijay
Vijay Kumar
 
Registers
Sahil Bansal
 
Loops in C
Kamal Acharya
 
computer organization and assembly language Lec 01 coal_introduction
Zia3130
 
Register introduction
maamir farooq
 
Ad

Viewers also liked (20)

PDF
G.C.E O/L ICT Short Notes Grade-11
Mahesh Kodituwakku
 
PDF
GCE O/L ICT
Mahesh Kodituwakku
 
PDF
Grade 10 ICT Short Notes in Sinhala(2015)
Mahesh Kodituwakku
 
PDF
G.C.E. O/L ICT Lessons Database sinhala
Mahesh Kodituwakku
 
PDF
ICT G.C.E O/L 2016 Model Paper
Mahesh Kodituwakku
 
PDF
පරිගණකයේ විකාශය
Rajith Pemabandu
 
PDF
ICT Lessons in Sinhala
Mahesh Kodituwakku
 
PDF
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Mahesh Kodituwakku
 
PPSX
දත්ත සහ තොරතුරු
Tennyson
 
PPSX
පරිගණක වර්ගීකරණය
Tennyson
 
PDF
GIT Model Paper
Mahesh Kodituwakku
 
PDF
Pascal tutorial
hidden__
 
PDF
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
Mahesh Kodituwakku
 
PDF
G.C.E. A/L ICT
Mahesh Kodituwakku
 
PPTX
Turbo pascal
Vien Rivera
 
PPTX
Pascal
Ivna Valença
 
PDF
ICT in Sinhala
Mahesh Kodituwakku
 
PDF
Linguagem de Programação Pascal
Marcus Vinicius
 
PDF
Programando com pascal
Ramon Souza
 
PDF
G.C.E A/L ICT Questions
Mahesh Kodituwakku
 
G.C.E O/L ICT Short Notes Grade-11
Mahesh Kodituwakku
 
GCE O/L ICT
Mahesh Kodituwakku
 
Grade 10 ICT Short Notes in Sinhala(2015)
Mahesh Kodituwakku
 
G.C.E. O/L ICT Lessons Database sinhala
Mahesh Kodituwakku
 
ICT G.C.E O/L 2016 Model Paper
Mahesh Kodituwakku
 
පරිගණකයේ විකාශය
Rajith Pemabandu
 
ICT Lessons in Sinhala
Mahesh Kodituwakku
 
Input and Output Devicesආදාන හා ප්‍රතිදාන උපාංග
Mahesh Kodituwakku
 
දත්ත සහ තොරතුරු
Tennyson
 
පරිගණක වර්ගීකරණය
Tennyson
 
GIT Model Paper
Mahesh Kodituwakku
 
Pascal tutorial
hidden__
 
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
Mahesh Kodituwakku
 
G.C.E. A/L ICT
Mahesh Kodituwakku
 
Turbo pascal
Vien Rivera
 
ICT in Sinhala
Mahesh Kodituwakku
 
Linguagem de Programação Pascal
Marcus Vinicius
 
Programando com pascal
Ramon Souza
 
G.C.E A/L ICT Questions
Mahesh Kodituwakku
 
Ad

Similar to Pascal Programming Session 1 (20)

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

More from Ashesh R (18)

PPTX
Sukhi parivaar web launch
Ashesh R
 
PPT
Open source
Ashesh R
 
PPT
Web2.0
Ashesh R
 
PPT
Linux
Ashesh R
 
PPT
Managing onlinebusiness
Ashesh R
 
PPTX
Presentation on Gifts
Ashesh R
 
PPT
Internet for everyone
Ashesh R
 
PPT
Influenza A H1 N1 Mexa
Ashesh R
 
PPT
Internet Pour Tous
Ashesh R
 
PPT
Intellectual Property Rights - Mauritian Legislation
Ashesh R
 
PPT
Activity Diagram
Ashesh R
 
PPT
Use Case Diagram
Ashesh R
 
PPT
UML Case Tools
Ashesh R
 
PPT
Problem Solving Techniques
Ashesh R
 
PDF
Cybercrime And Computer Misuse Cases
Ashesh R
 
PPT
National Geographic
Ashesh R
 
PDF
E Recruitment
Ashesh R
 
PPT
Reflections
Ashesh R
 
Sukhi parivaar web launch
Ashesh R
 
Open source
Ashesh R
 
Web2.0
Ashesh R
 
Linux
Ashesh R
 
Managing onlinebusiness
Ashesh R
 
Presentation on Gifts
Ashesh R
 
Internet for everyone
Ashesh R
 
Influenza A H1 N1 Mexa
Ashesh R
 
Internet Pour Tous
Ashesh R
 
Intellectual Property Rights - Mauritian Legislation
Ashesh R
 
Activity Diagram
Ashesh R
 
Use Case Diagram
Ashesh R
 
UML Case Tools
Ashesh R
 
Problem Solving Techniques
Ashesh R
 
Cybercrime And Computer Misuse Cases
Ashesh R
 
National Geographic
Ashesh R
 
E Recruitment
Ashesh R
 
Reflections
Ashesh R
 

Recently uploaded (20)

PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
The Future of Artificial Intelligence (AI)
Mukul
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 

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