SlideShare a Scribd company logo
1 of 3
Download to read offline
BASIC 
PSEUDOCODE 
START PROGRAM 
IMPORT tkinter 
IMPORT time 
SET timer 
DISPLAY obstacle shapes 
DISPLAY robot 
DETERMINE robot route 
WHILE time is less than 500 
LOOP robot route 
END WHILE 
END PROGRAM 
INTERMEDIATE 
PSEUDOCODE 
START PROGRAM 
IMPORT tkinter 
IMPORT time 
IMPORT random 
SET timer 
DISPLAY obstacle shapes 
DISPLAY robot 
DISPLAY green traffic lights 
DETERMINE robot route 1 
DETERMINE robot route 2 
DETERMINE robot route 3 
SET a random number between 1 and 3 
DISPLAY route from random number 
FOR traffic light 
IF traffic light equals 5 
SET traffic light colour to red 
ELSE IF traffic light equals 10 
SET traffic light colour to green 
SET traffic light to 0 
ELSE 
INCREMENT by 1 
END IF 
END FOR
WHILE time is less than 500 
LOOP robot route 
WHILE traffic light is red 
SET robot to pause 
END WHILE 
END WHILE 
END PROGRAM 
ADVANCED 
PSEUDOCODE 
START PROGRAM 
IMPORT tkinter 
IMPORT time 
IMPORT random 
SET timer 
DISPLAY obstacle shapes 
DISPLAY robot 
DISPLAY robot2 
DISPLAY green traffic lights 
DETERMINE random robot route 
(DETERMINE random robot2 route 
IF robot NEAR obstacle shapes 
robot rebounds 
ENDIF 
IF robot NEAR robot2 
robot MOVE_AWAY robot2 
ENDIF) 
IF robot2 NEAR obstacle shapes 
robot2 rebounds 
ENDIF 
IF robot2 NEAR robot 
robot2 MOVE_AWAY robot 
ENDIF 
FOR traffic light 
IF traffic light equals 5 
SET traffic light colour to red 
ELSE IF traffic light equals 10 
SET traffic light colour to green 
SET traffic light to 0 
ELSE 
INCREMENT by 1 
END IF 
END FOR
WHILE time is less than 500 
LOOP robot route 
(LOOP robot2 route) 
WHILE traffic light is red 
SET robot to pause 
(SET robot2 to pause) 
END WHILE 
END WHILE 
END PROGRAM

More Related Content

What's hot (6)

3. lookup functions in excel
3. lookup functions in excel3. lookup functions in excel
3. lookup functions in excel
 
Excel text function
Excel text functionExcel text function
Excel text function
 
Sql task
Sql taskSql task
Sql task
 
" PMT FUNCTION WITH EXAMPLE " IN MS EXCEL
" PMT FUNCTION WITH EXAMPLE " IN MS EXCEL" PMT FUNCTION WITH EXAMPLE " IN MS EXCEL
" PMT FUNCTION WITH EXAMPLE " IN MS EXCEL
 
Spreadsheet text functions
Spreadsheet text functionsSpreadsheet text functions
Spreadsheet text functions
 
Indian air force
Indian air forceIndian air force
Indian air force
 

Viewers also liked

Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowcharts
kapil078
 
1204b5b3823a6947345193ce2af71230
1204b5b3823a6947345193ce2af712301204b5b3823a6947345193ce2af71230
1204b5b3823a6947345193ce2af71230
LybaS1974
 
Careerly SEO Audit LinkedIn
Careerly SEO Audit LinkedInCareerly SEO Audit LinkedIn
Careerly SEO Audit LinkedIn
Lisa Gelhaus
 
Aprendizaje Ubicuo
Aprendizaje UbicuoAprendizaje Ubicuo
Aprendizaje Ubicuo
mabero49
 

Viewers also liked (17)

pseudo code
pseudo codepseudo code
pseudo code
 
Pseudo code
Pseudo codePseudo code
Pseudo code
 
Flow chart and pseudo code
Flow chart and pseudo code Flow chart and pseudo code
Flow chart and pseudo code
 
C++ in sinhala
C++ in sinhalaC++ in sinhala
C++ in sinhala
 
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowcharts
 
1204b5b3823a6947345193ce2af71230
1204b5b3823a6947345193ce2af712301204b5b3823a6947345193ce2af71230
1204b5b3823a6947345193ce2af71230
 
The Spiritual Laws - Vicent Guillem
The Spiritual Laws - Vicent GuillemThe Spiritual Laws - Vicent Guillem
The Spiritual Laws - Vicent Guillem
 
Statistika Korelasi dan Regresi
Statistika Korelasi dan RegresiStatistika Korelasi dan Regresi
Statistika Korelasi dan Regresi
 
De sportvereniging als wijkpartner: samenwerking tussen zorg en sport
De sportvereniging als wijkpartner: samenwerking tussen zorg en sportDe sportvereniging als wijkpartner: samenwerking tussen zorg en sport
De sportvereniging als wijkpartner: samenwerking tussen zorg en sport
 
Careerly SEO Audit LinkedIn
Careerly SEO Audit LinkedInCareerly SEO Audit LinkedIn
Careerly SEO Audit LinkedIn
 
Xyrex blog new
Xyrex blog newXyrex blog new
Xyrex blog new
 
Ufo's or unidentified flying object
Ufo's or unidentified flying objectUfo's or unidentified flying object
Ufo's or unidentified flying object
 
Semana cultural
Semana culturalSemana cultural
Semana cultural
 
Credenciales_2016_junio
Credenciales_2016_junioCredenciales_2016_junio
Credenciales_2016_junio
 
"Assolti. Ma forse sonocolpevoli". ("Acquitted. But they may are guilty")
"Assolti. Ma forse sonocolpevoli". ("Acquitted. But they may are guilty")"Assolti. Ma forse sonocolpevoli". ("Acquitted. But they may are guilty")
"Assolti. Ma forse sonocolpevoli". ("Acquitted. But they may are guilty")
 
Aprendizaje Ubicuo
Aprendizaje UbicuoAprendizaje Ubicuo
Aprendizaje Ubicuo
 
Atti introduttivi al dibattimento - Pretrial decisions under italian criminal...
Atti introduttivi al dibattimento - Pretrial decisions under italian criminal...Atti introduttivi al dibattimento - Pretrial decisions under italian criminal...
Atti introduttivi al dibattimento - Pretrial decisions under italian criminal...
 

More from abukky52 (8)

Program implementation and testing
Program implementation and testingProgram implementation and testing
Program implementation and testing
 
Prototype solution
Prototype solutionPrototype solution
Prototype solution
 
Story board design
Story board designStory board design
Story board design
 
Virtual networking computing via raspberry pi and nexus installation and conf...
Virtual networking computing via raspberry pi and nexus installation and conf...Virtual networking computing via raspberry pi and nexus installation and conf...
Virtual networking computing via raspberry pi and nexus installation and conf...
 
Project management
Project management Project management
Project management
 
Prototype solution2
Prototype solution2Prototype solution2
Prototype solution2
 
Project management
Project managementProject management
Project management
 
106CR DESIGN FOR USABILITY
106CR DESIGN FOR USABILITY106CR DESIGN FOR USABILITY
106CR DESIGN FOR USABILITY
 

Recently uploaded

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
chumtiyababu
 

Recently uploaded (20)

Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 

Pseudo code

  • 1. BASIC PSEUDOCODE START PROGRAM IMPORT tkinter IMPORT time SET timer DISPLAY obstacle shapes DISPLAY robot DETERMINE robot route WHILE time is less than 500 LOOP robot route END WHILE END PROGRAM INTERMEDIATE PSEUDOCODE START PROGRAM IMPORT tkinter IMPORT time IMPORT random SET timer DISPLAY obstacle shapes DISPLAY robot DISPLAY green traffic lights DETERMINE robot route 1 DETERMINE robot route 2 DETERMINE robot route 3 SET a random number between 1 and 3 DISPLAY route from random number FOR traffic light IF traffic light equals 5 SET traffic light colour to red ELSE IF traffic light equals 10 SET traffic light colour to green SET traffic light to 0 ELSE INCREMENT by 1 END IF END FOR
  • 2. WHILE time is less than 500 LOOP robot route WHILE traffic light is red SET robot to pause END WHILE END WHILE END PROGRAM ADVANCED PSEUDOCODE START PROGRAM IMPORT tkinter IMPORT time IMPORT random SET timer DISPLAY obstacle shapes DISPLAY robot DISPLAY robot2 DISPLAY green traffic lights DETERMINE random robot route (DETERMINE random robot2 route IF robot NEAR obstacle shapes robot rebounds ENDIF IF robot NEAR robot2 robot MOVE_AWAY robot2 ENDIF) IF robot2 NEAR obstacle shapes robot2 rebounds ENDIF IF robot2 NEAR robot robot2 MOVE_AWAY robot ENDIF FOR traffic light IF traffic light equals 5 SET traffic light colour to red ELSE IF traffic light equals 10 SET traffic light colour to green SET traffic light to 0 ELSE INCREMENT by 1 END IF END FOR
  • 3. WHILE time is less than 500 LOOP robot route (LOOP robot2 route) WHILE traffic light is red SET robot to pause (SET robot2 to pause) END WHILE END WHILE END PROGRAM