SlideShare a Scribd company logo
The Pseudo code
Programming Process
Code Complete
Author : Steven C. McConnell.

Prof. Asha N

1
Summary of Steps in Building Classes
and Routines




Creating a general
design for the class is an
iterative process
class creation can be a
messy process for all the
reasons that design is a
messy process

Prof. Asha N

2
Steps in Creating a Class




Create a general design for the class
Construct each routine within the class
Review and test the class as a whole

Prof. Asha N

3
Steps in Building a Routine


creating a routine—
designing the routine,
checking the design,
coding the routine,
and checking the
code

Prof. Asha N

4
Pseudo code for Pros




“pseudocode” – English-like notation for
describing how an algorithm, a routine, a
class, or a program will work
Pseudocode Programming Process (PPP)
defines a specific approach to use
pseudocode to streamline the creation of
code within routines.

Prof. Asha N

5
Contd…
guidelines for using pseudocode





Use English-like statements that precisely
describe specific operations.
Avoid syntactic elements from the target
programming language.
Write pseudocode at the level of intent.
Write pseudocode at a low enough level that
generating code from it will be nearly automatic.

Prof. Asha N

6
Contd…


Example of Bad Pseudocode
increment resource number by 1
allocate a dlg struct using malloc
if malloc() returns NULL then return 1
invoke OSrsrc_init to initialize a resource for the operating system
*hRsrcPtr = resource number
return 0

Prof. Asha N

7
Contd…


Example of Good Pseudocode
Keep track of current number of resources in use
If another resource is available
Allocate a dialog box structure
If a dialog box structure could be allocated
Note that one more resource is in use
Initialize the resource
Store the resource number at the location provided by the caller
Endif
Endif
Return TRUE if a new resource was created; else return FALSE

Prof. Asha N

8
Constructing Routines Using the PPP


the activities involved in constructing a
routine
1.
2.
3.
4.
5.

Design the routine
Code the routine
Check the code
Clean up leftovers
Repeat as needed

Prof. Asha N

9
1. Design the Routine













Check the prerequisites
Define the problem the routine will solve
Name the routine
Decide how to test the routine
Think about error handling
Think about efficiency
Research functionality available in the standard libraries
Research the algorithms and data types
Write the pseudocode
Think about the data
Check the pseudocode
Try a few ideas in pseudocode, and keep the best (iterate)

Prof. Asha N

10
2. Code the Routine

Prof. Asha N

11
3. Check the Code







Mentally check the routine for errors
Compile the routine
Step through the code in the debugger
Test the code
Remove errors from the routine

Prof. Asha N

12
4. Clean Up Leftovers


take several cleanup steps to make sure that the
routine’s quality is up to your standards









Check the routine’s interface
Check for general design quality
Check the routine’s data
Check the routine’s statements and logic
Check the routine’s layout
Check the routine’s documentation.
Remove redundant comments

Prof. Asha N

13
5. Repeat Steps as Needed


If the quality of the routine is poor, back up to the
pseudocode. High-quality programming is an
iterative process, so don’t hesitate to loop through
the construction activities again.

Prof. Asha N

14
Ad

More Related Content

What's hot (20)

C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
Hawkman Academy
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
nicky_walters
 
Abstraction
AbstractionAbstraction
Abstraction
adil raja
 
Programming fundamentals lecture 4
Programming fundamentals lecture 4Programming fundamentals lecture 4
Programming fundamentals lecture 4
Raja Hamid
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
Damian T. Gordon
 
Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)
swapnac12
 
structured programming
structured programmingstructured programming
structured programming
Ahmad54321
 
SOFTWARE PROJECT PLANNING on Software Engineering
SOFTWARE PROJECT PLANNING on Software EngineeringSOFTWARE PROJECT PLANNING on Software Engineering
SOFTWARE PROJECT PLANNING on Software Engineering
work90665
 
Python introduction
Python introductionPython introduction
Python introduction
Jignesh Kariya
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
Moutaz Haddara
 
Function oriented design
Function oriented designFunction oriented design
Function oriented design
Vidhun T
 
Programming in c
Programming in cProgramming in c
Programming in c
indra Kishor
 
Control Structures in Python
Control Structures in PythonControl Structures in Python
Control Structures in Python
Sumit Satam
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
Tech_MX
 
Java applets
Java appletsJava applets
Java applets
Pihu Goel
 
Java applet programming concepts
Java  applet programming conceptsJava  applet programming concepts
Java applet programming concepts
Victer Paul
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
Anil Kumar
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
Abhilash Nair
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteria
Umaselvi_R
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
Hawkman Academy
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
nicky_walters
 
Programming fundamentals lecture 4
Programming fundamentals lecture 4Programming fundamentals lecture 4
Programming fundamentals lecture 4
Raja Hamid
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
Damian T. Gordon
 
Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)
swapnac12
 
structured programming
structured programmingstructured programming
structured programming
Ahmad54321
 
SOFTWARE PROJECT PLANNING on Software Engineering
SOFTWARE PROJECT PLANNING on Software EngineeringSOFTWARE PROJECT PLANNING on Software Engineering
SOFTWARE PROJECT PLANNING on Software Engineering
work90665
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
Moutaz Haddara
 
Function oriented design
Function oriented designFunction oriented design
Function oriented design
Vidhun T
 
Control Structures in Python
Control Structures in PythonControl Structures in Python
Control Structures in Python
Sumit Satam
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
Tech_MX
 
Java applets
Java appletsJava applets
Java applets
Pihu Goel
 
Java applet programming concepts
Java  applet programming conceptsJava  applet programming concepts
Java applet programming concepts
Victer Paul
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
Anil Kumar
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteria
Umaselvi_R
 

Viewers also liked (20)

Pseudocode
PseudocodePseudocode
Pseudocode
Guy09
 
Pseudocode basics
Pseudocode basicsPseudocode basics
Pseudocode basics
kiran_kaur
 
4a searching-more
4a searching-more4a searching-more
4a searching-more
Shahzad Ali
 
Pseudocode By ZAK
Pseudocode By ZAKPseudocode By ZAK
Pseudocode By ZAK
Tabsheer Hasan
 
Basic concepts
Basic conceptsBasic concepts
Basic concepts
Huma Ayub
 
Pseudocode
PseudocodePseudocode
Pseudocode
Harsha Madushanka
 
Defencive programming
Defencive programmingDefencive programming
Defencive programming
Asha Sari
 
Integration
IntegrationIntegration
Integration
Asha Sari
 
Design in construction
Design in constructionDesign in construction
Design in construction
Asha Sari
 
Variables
VariablesVariables
Variables
Maha Saad
 
A Guideline to Test Your Own Code - Developer Testing
A Guideline to Test Your Own Code - Developer TestingA Guideline to Test Your Own Code - Developer Testing
A Guideline to Test Your Own Code - Developer Testing
Folio3 Software
 
高品質軟體的基本動作 101 + 102 for NUU
高品質軟體的基本動作 101 + 102 for NUU高品質軟體的基本動作 101 + 102 for NUU
高品質軟體的基本動作 101 + 102 for NUU
Su Jan
 
Code tuning techniques
Code tuning techniquesCode tuning techniques
Code tuning techniques
Asha Sari
 
Java scriptcore brief introduction
Java scriptcore brief introductionJava scriptcore brief introduction
Java scriptcore brief introduction
Horky Chen
 
程序员发展漫谈
程序员发展漫谈程序员发展漫谈
程序员发展漫谈
Horky Chen
 
Coding Style
Coding StyleCoding Style
Coding Style
Hung-Wei Liu
 
代码大全(内训)
代码大全(内训)代码大全(内训)
代码大全(内训)
Horky Chen
 
MOST_OpenFoundry_version control system_Git
MOST_OpenFoundry_version control system_GitMOST_OpenFoundry_version control system_Git
MOST_OpenFoundry_version control system_Git
Su Jan
 
Design in construction
Design in constructionDesign in construction
Design in construction
Asha Sari
 
程序员实践之路
程序员实践之路程序员实践之路
程序员实践之路
Horky Chen
 
Pseudocode
PseudocodePseudocode
Pseudocode
Guy09
 
Pseudocode basics
Pseudocode basicsPseudocode basics
Pseudocode basics
kiran_kaur
 
4a searching-more
4a searching-more4a searching-more
4a searching-more
Shahzad Ali
 
Basic concepts
Basic conceptsBasic concepts
Basic concepts
Huma Ayub
 
Defencive programming
Defencive programmingDefencive programming
Defencive programming
Asha Sari
 
Design in construction
Design in constructionDesign in construction
Design in construction
Asha Sari
 
A Guideline to Test Your Own Code - Developer Testing
A Guideline to Test Your Own Code - Developer TestingA Guideline to Test Your Own Code - Developer Testing
A Guideline to Test Your Own Code - Developer Testing
Folio3 Software
 
高品質軟體的基本動作 101 + 102 for NUU
高品質軟體的基本動作 101 + 102 for NUU高品質軟體的基本動作 101 + 102 for NUU
高品質軟體的基本動作 101 + 102 for NUU
Su Jan
 
Code tuning techniques
Code tuning techniquesCode tuning techniques
Code tuning techniques
Asha Sari
 
Java scriptcore brief introduction
Java scriptcore brief introductionJava scriptcore brief introduction
Java scriptcore brief introduction
Horky Chen
 
程序员发展漫谈
程序员发展漫谈程序员发展漫谈
程序员发展漫谈
Horky Chen
 
代码大全(内训)
代码大全(内训)代码大全(内训)
代码大全(内训)
Horky Chen
 
MOST_OpenFoundry_version control system_Git
MOST_OpenFoundry_version control system_GitMOST_OpenFoundry_version control system_Git
MOST_OpenFoundry_version control system_Git
Su Jan
 
Design in construction
Design in constructionDesign in construction
Design in construction
Asha Sari
 
程序员实践之路
程序员实践之路程序员实践之路
程序员实践之路
Horky Chen
 
Ad

Similar to The pseudocode (20)

softwaree construction and development scd
softwaree construction and development scdsoftwaree construction and development scd
softwaree construction and development scd
Sami Mughal
 
TAMUC LO 10
TAMUC LO 10TAMUC LO 10
TAMUC LO 10
Dr. Christopher Jones
 
Preocupações Desenvolvedor Ágil
Preocupações Desenvolvedor ÁgilPreocupações Desenvolvedor Ágil
Preocupações Desenvolvedor Ágil
Paulo Igor Alves Godinho
 
Best Practices and Tips for r programming.pdf
Best Practices and Tips for r programming.pdfBest Practices and Tips for r programming.pdf
Best Practices and Tips for r programming.pdf
Assignment World
 
javabasics_ programming development chapter01
javabasics_ programming development chapter01javabasics_ programming development chapter01
javabasics_ programming development chapter01
Udeshg90
 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
Best-Practices-in-Writing-Clean-Maintainable-Code
Best-Practices-in-Writing-Clean-Maintainable-CodeBest-Practices-in-Writing-Clean-Maintainable-Code
Best-Practices-in-Writing-Clean-Maintainable-Code
Ozias Rondon
 
jhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptx
jhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptxjhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptx
jhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptx
Thrisha59
 
Best-Practices-for-Writing-Clean-Code.Presentation
Best-Practices-for-Writing-Clean-Code.PresentationBest-Practices-for-Writing-Clean-Code.Presentation
Best-Practices-for-Writing-Clean-Code.Presentation
Ozias Rondon
 
Programming NC-IV
Programming NC-IVProgramming NC-IV
Programming NC-IV
Jeffrey Esmundo
 
Introduction to Software Review
Introduction to Software ReviewIntroduction to Software Review
Introduction to Software Review
Philip Johnson
 
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
DevDay Da Nang
 
Testing practicies not only in scala
Testing practicies not only in scalaTesting practicies not only in scala
Testing practicies not only in scala
Paweł Panasewicz
 
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docxSheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
lesleyryder69361
 
Code tuning strategies
Code tuning strategiesCode tuning strategies
Code tuning strategies
Asha Sari
 
DataMind interactive learning: Dublin R User Group: September 2013
DataMind interactive learning: Dublin R User Group: September 2013DataMind interactive learning: Dublin R User Group: September 2013
DataMind interactive learning: Dublin R User Group: September 2013
DataMind-slides
 
Intro to prog
Intro to progIntro to prog
Intro to prog
Chaffey College
 
Django Best Practices
Django Best PracticesDjango Best Practices
Django Best Practices
Abdullah Çetin ÇAVDAR
 
Software coding and testing
Software coding and testingSoftware coding and testing
Software coding and testing
Sandeep Kumar Nayak
 
CurrieTesting. in engineering field relevant
CurrieTesting. in engineering field relevantCurrieTesting. in engineering field relevant
CurrieTesting. in engineering field relevant
faiziikanwal47
 
softwaree construction and development scd
softwaree construction and development scdsoftwaree construction and development scd
softwaree construction and development scd
Sami Mughal
 
Best Practices and Tips for r programming.pdf
Best Practices and Tips for r programming.pdfBest Practices and Tips for r programming.pdf
Best Practices and Tips for r programming.pdf
Assignment World
 
javabasics_ programming development chapter01
javabasics_ programming development chapter01javabasics_ programming development chapter01
javabasics_ programming development chapter01
Udeshg90
 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
Best-Practices-in-Writing-Clean-Maintainable-Code
Best-Practices-in-Writing-Clean-Maintainable-CodeBest-Practices-in-Writing-Clean-Maintainable-Code
Best-Practices-in-Writing-Clean-Maintainable-Code
Ozias Rondon
 
jhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptx
jhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptxjhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptx
jhdgqwuysuty1yyd uhudgqwygd ueu1eu2.pptx
Thrisha59
 
Best-Practices-for-Writing-Clean-Code.Presentation
Best-Practices-for-Writing-Clean-Code.PresentationBest-Practices-for-Writing-Clean-Code.Presentation
Best-Practices-for-Writing-Clean-Code.Presentation
Ozias Rondon
 
Introduction to Software Review
Introduction to Software ReviewIntroduction to Software Review
Introduction to Software Review
Philip Johnson
 
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
DevDay Da Nang
 
Testing practicies not only in scala
Testing practicies not only in scalaTesting practicies not only in scala
Testing practicies not only in scala
Paweł Panasewicz
 
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docxSheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
lesleyryder69361
 
Code tuning strategies
Code tuning strategiesCode tuning strategies
Code tuning strategies
Asha Sari
 
DataMind interactive learning: Dublin R User Group: September 2013
DataMind interactive learning: Dublin R User Group: September 2013DataMind interactive learning: Dublin R User Group: September 2013
DataMind interactive learning: Dublin R User Group: September 2013
DataMind-slides
 
CurrieTesting. in engineering field relevant
CurrieTesting. in engineering field relevantCurrieTesting. in engineering field relevant
CurrieTesting. in engineering field relevant
faiziikanwal47
 
Ad

Recently uploaded (20)

Cyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top QuestionsCyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top Questions
SONU HEETSON
 
COPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDFCOPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDF
SONU HEETSON
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............
19lburrell
 
Bipolar Junction Transistors (BJTs): Basics, Construction & Configurations
Bipolar Junction Transistors (BJTs): Basics, Construction & ConfigurationsBipolar Junction Transistors (BJTs): Basics, Construction & Configurations
Bipolar Junction Transistors (BJTs): Basics, Construction & Configurations
GS Virdi
 
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdfIPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
Quiz Club of PSG College of Arts & Science
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
How to Use Upgrade Code Command in Odoo 18
How to Use Upgrade Code Command in Odoo 18How to Use Upgrade Code Command in Odoo 18
How to Use Upgrade Code Command in Odoo 18
Celine George
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptxUnit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Mayuri Chavan
 
libbys peer assesment.docx..............
libbys peer assesment.docx..............libbys peer assesment.docx..............
libbys peer assesment.docx..............
19lburrell
 
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptxU3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
Mayuri Chavan
 
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFAMCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
Cyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top QuestionsCyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top Questions
SONU HEETSON
 
COPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDFCOPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDF
SONU HEETSON
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............
19lburrell
 
Bipolar Junction Transistors (BJTs): Basics, Construction & Configurations
Bipolar Junction Transistors (BJTs): Basics, Construction & ConfigurationsBipolar Junction Transistors (BJTs): Basics, Construction & Configurations
Bipolar Junction Transistors (BJTs): Basics, Construction & Configurations
GS Virdi
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
How to Use Upgrade Code Command in Odoo 18
How to Use Upgrade Code Command in Odoo 18How to Use Upgrade Code Command in Odoo 18
How to Use Upgrade Code Command in Odoo 18
Celine George
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptxUnit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Mayuri Chavan
 
libbys peer assesment.docx..............
libbys peer assesment.docx..............libbys peer assesment.docx..............
libbys peer assesment.docx..............
19lburrell
 
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptxU3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
Mayuri Chavan
 
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFAMCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 

The pseudocode

  • 1. The Pseudo code Programming Process Code Complete Author : Steven C. McConnell. Prof. Asha N 1
  • 2. Summary of Steps in Building Classes and Routines   Creating a general design for the class is an iterative process class creation can be a messy process for all the reasons that design is a messy process Prof. Asha N 2
  • 3. Steps in Creating a Class    Create a general design for the class Construct each routine within the class Review and test the class as a whole Prof. Asha N 3
  • 4. Steps in Building a Routine  creating a routine— designing the routine, checking the design, coding the routine, and checking the code Prof. Asha N 4
  • 5. Pseudo code for Pros   “pseudocode” – English-like notation for describing how an algorithm, a routine, a class, or a program will work Pseudocode Programming Process (PPP) defines a specific approach to use pseudocode to streamline the creation of code within routines. Prof. Asha N 5
  • 6. Contd… guidelines for using pseudocode     Use English-like statements that precisely describe specific operations. Avoid syntactic elements from the target programming language. Write pseudocode at the level of intent. Write pseudocode at a low enough level that generating code from it will be nearly automatic. Prof. Asha N 6
  • 7. Contd…  Example of Bad Pseudocode increment resource number by 1 allocate a dlg struct using malloc if malloc() returns NULL then return 1 invoke OSrsrc_init to initialize a resource for the operating system *hRsrcPtr = resource number return 0 Prof. Asha N 7
  • 8. Contd…  Example of Good Pseudocode Keep track of current number of resources in use If another resource is available Allocate a dialog box structure If a dialog box structure could be allocated Note that one more resource is in use Initialize the resource Store the resource number at the location provided by the caller Endif Endif Return TRUE if a new resource was created; else return FALSE Prof. Asha N 8
  • 9. Constructing Routines Using the PPP  the activities involved in constructing a routine 1. 2. 3. 4. 5. Design the routine Code the routine Check the code Clean up leftovers Repeat as needed Prof. Asha N 9
  • 10. 1. Design the Routine             Check the prerequisites Define the problem the routine will solve Name the routine Decide how to test the routine Think about error handling Think about efficiency Research functionality available in the standard libraries Research the algorithms and data types Write the pseudocode Think about the data Check the pseudocode Try a few ideas in pseudocode, and keep the best (iterate) Prof. Asha N 10
  • 11. 2. Code the Routine Prof. Asha N 11
  • 12. 3. Check the Code      Mentally check the routine for errors Compile the routine Step through the code in the debugger Test the code Remove errors from the routine Prof. Asha N 12
  • 13. 4. Clean Up Leftovers  take several cleanup steps to make sure that the routine’s quality is up to your standards        Check the routine’s interface Check for general design quality Check the routine’s data Check the routine’s statements and logic Check the routine’s layout Check the routine’s documentation. Remove redundant comments Prof. Asha N 13
  • 14. 5. Repeat Steps as Needed  If the quality of the routine is poor, back up to the pseudocode. High-quality programming is an iterative process, so don’t hesitate to loop through the construction activities again. Prof. Asha N 14
  翻译: