SlideShare a Scribd company logo
PSEUDOCODE
BEGINNER
PROGRAMMING
LESSON
Lesson Objectives
1. Learn what pseudocode means
2. Learn why you use pseudocode
3. Learn to write pseudocode for a common task
4. Learn how to plan programs for First Lego League
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 2
What is Pseudocode?
• Robots follow directions that people give them. They need detailed, step-by-
step instructions to complete a task.
• It is a set of detailed notes that the programmer can use to write the code
when they are ready.
• It is not written in any particular programming language. Pseudocode can be in
part English and part code.
• Pseudocode allows the programmer to communicate his/her plan with others
• Pseudocode is detailed enough to create the actual code
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 3
Why is Pseudocode Important?
• A great way to learn the importance of good pseudocode is to try writing
instructions for something simple:
◦ How to make a sandwich, how to decorate a cake, how to plant a seed, etc.
◦ Students should write the instructions and then the teacher should follow them.
◦ Then compare the results.
• Some examples of student responses for a peanut butter and jelly sandwich:
◦ Student 1 wrote: “Put the peanut butter on the bread”. So the teacher placed the entire jar on the slices of
bread.
◦ Student 2 wrote: “Take bread and spread the peanut butter on it”. So the teacher spread peanut butter on the
entire loaf.
◦ Student 3 wrote: “Take 2 slices of bread and spread peanut butter and jelly on them”. So the teacher spread
peanut butter and jelly on both sides of both slices.
• Communicating instructions well is important! 
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 4
Sandwich Pseudocode Solution
• Take exactly two pieces of bread.
• Take one piece of bread that is not covered with peanut
butter on any side and use a knife to spread peanut butter
on one side
• Take a second piece of bread that is not covered with jelly
on any side and use a knife to spread jelly on one side
• Place the jelly side of the second piece of bread against the
peanut butter side of the first piece of bread.
• Place the combined pieces of bread on plate
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 5
Writing Pseudocode for a Robot
1) Write down the goal of the program. What does
the robot have to do?
2) Think about how the robot will achieve this
goal. What are the specific steps?
3) Write down each step the robot will take. Start
with Step 1 and continue on.
4) Make sure you write down if the robot has to
repeat a task.
5) Does the robot keep doing this task forever or
does it end?
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 6
Sample Pseudocode for a
Challenge
Goal: Robot needs to go once around a square
box. It starts at the line and faces north. It will
end on the line facing north.
Step 1: Go forward 10 inches
Step 2: Turn left 90 degrees
Step 3: Repeat steps 1 and 2 three more times
You can write this pseudocode on a piece of
paper or even in a comment block inside the EV3-
G code.
Use the pseudocode to program the solution
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016)
N
7
Pseudocode FOR A SET OF
MISSIONS
• If you have a series of
missions for your robot to
complete, planning ahead
can be a big help.
• You can draw out the path
your robot needs to take and
then write out the
instructions for the robot
step-by-step
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 8
Sample PLANNING TOOLS for First
Lego League
© EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016)
Both these resources
are available on
EV3Lessons.com
9
End of the lesson
10

More Related Content

Similar to Ah pseudocode2 - Beginner

My code workshop presentation
My code workshop presentationMy code workshop presentation
My code workshop presentation
shainavglass
 
Codesters
CodestersCodesters
Codesters
Barbara M. King
 
Business 1
 Business 1 Business 1
Business 1
chamberssidney
 
13527366.ppt
13527366.ppt13527366.ppt
13527366.ppt
MARYROSELENEREPOLITO
 
Rpp procedure text
Rpp procedure textRpp procedure text
Rpp procedure textPriyanka Eka
 
Overview of ODK.pptx
Overview of ODK.pptxOverview of ODK.pptx
Overview of ODK.pptx
AlebachewMengistie1
 
The NXT Step - Assessing with Lego Robots
The NXT Step - Assessing with Lego RobotsThe NXT Step - Assessing with Lego Robots
The NXT Step - Assessing with Lego Robots
Kenji Lamb
 
WEDO learning challenge, La Maquinista
 WEDO learning challenge, La Maquinista WEDO learning challenge, La Maquinista
WEDO learning challenge, La Maquinista
ceiplamaquinista1
 
Class #7: Here's the Scoop
Class #7: Here's the ScoopClass #7: Here's the Scoop
Class #7: Here's the Scoop
Angela DeHart
 
Al touch2 - Beginner
Al   touch2 - BeginnerAl   touch2 - Beginner
Al touch2 - Beginner
Romaric Saounde Tsopnang
 
How to involve your team in analysis
How to involve your team in analysisHow to involve your team in analysis
How to involve your team in analysis
Kea Zhang
 
Microsoft Word - Basics Lesson Plan.docx
Microsoft Word - Basics Lesson Plan.docxMicrosoft Word - Basics Lesson Plan.docx
Microsoft Word - Basics Lesson Plan.docx
charitorivera3
 
Cow Procedures
Cow ProceduresCow Procedures
Cow Procedures
sylviahinojosa
 
Vision teacher boy pd donna 8 8 cow
Vision teacher boy pd donna 8 8 cowVision teacher boy pd donna 8 8 cow
Vision teacher boy pd donna 8 8 cowsylviahinojosa
 
Scratch Lesson 2
Scratch Lesson 2Scratch Lesson 2
Scratch Lesson 2
Vadim Axelrod
 
Introduction to Usability Testing for Digital Marketeers
Introduction to Usability Testing for Digital MarketeersIntroduction to Usability Testing for Digital Marketeers
Introduction to Usability Testing for Digital Marketeers
Lennart Overkamp
 
Getting Started with Spanish 1 NCVPS
Getting Started with Spanish 1 NCVPSGetting Started with Spanish 1 NCVPS
Getting Started with Spanish 1 NCVPS
Herman Hall
 
Lesson_1_Python_Turtle.pptx
Lesson_1_Python_Turtle.pptxLesson_1_Python_Turtle.pptx
Lesson_1_Python_Turtle.pptx
hrima
 
How to land your dream International Summer Internship!
How to land your dream International Summer Internship!How to land your dream International Summer Internship!
How to land your dream International Summer Internship!Sohini Bagchi
 

Similar to Ah pseudocode2 - Beginner (20)

My code workshop presentation
My code workshop presentationMy code workshop presentation
My code workshop presentation
 
Codesters
CodestersCodesters
Codesters
 
Business 1
 Business 1 Business 1
Business 1
 
13527366.ppt
13527366.ppt13527366.ppt
13527366.ppt
 
Rpp procedure text
Rpp procedure textRpp procedure text
Rpp procedure text
 
Overview of ODK.pptx
Overview of ODK.pptxOverview of ODK.pptx
Overview of ODK.pptx
 
The NXT Step - Assessing with Lego Robots
The NXT Step - Assessing with Lego RobotsThe NXT Step - Assessing with Lego Robots
The NXT Step - Assessing with Lego Robots
 
WEDO learning challenge, La Maquinista
 WEDO learning challenge, La Maquinista WEDO learning challenge, La Maquinista
WEDO learning challenge, La Maquinista
 
Class #7: Here's the Scoop
Class #7: Here's the ScoopClass #7: Here's the Scoop
Class #7: Here's the Scoop
 
Al touch2 - Beginner
Al   touch2 - BeginnerAl   touch2 - Beginner
Al touch2 - Beginner
 
How to involve your team in analysis
How to involve your team in analysisHow to involve your team in analysis
How to involve your team in analysis
 
Microsoft Word - Basics Lesson Plan.docx
Microsoft Word - Basics Lesson Plan.docxMicrosoft Word - Basics Lesson Plan.docx
Microsoft Word - Basics Lesson Plan.docx
 
Cow Procedures
Cow ProceduresCow Procedures
Cow Procedures
 
Vision teacher boy pd donna 8 8 cow
Vision teacher boy pd donna 8 8 cowVision teacher boy pd donna 8 8 cow
Vision teacher boy pd donna 8 8 cow
 
Scratch Lesson 2
Scratch Lesson 2Scratch Lesson 2
Scratch Lesson 2
 
Introduction to Usability Testing for Digital Marketeers
Introduction to Usability Testing for Digital MarketeersIntroduction to Usability Testing for Digital Marketeers
Introduction to Usability Testing for Digital Marketeers
 
10th&11th hot potatoes
10th&11th hot potatoes10th&11th hot potatoes
10th&11th hot potatoes
 
Getting Started with Spanish 1 NCVPS
Getting Started with Spanish 1 NCVPSGetting Started with Spanish 1 NCVPS
Getting Started with Spanish 1 NCVPS
 
Lesson_1_Python_Turtle.pptx
Lesson_1_Python_Turtle.pptxLesson_1_Python_Turtle.pptx
Lesson_1_Python_Turtle.pptx
 
How to land your dream International Summer Internship!
How to land your dream International Summer Internship!How to land your dream International Summer Internship!
How to land your dream International Summer Internship!
 

More from Romaric Saounde Tsopnang

Aq les conditionnelles - Débutant
Aq   les conditionnelles - DébutantAq   les conditionnelles - Débutant
Aq les conditionnelles - Débutant
Romaric Saounde Tsopnang
 
Ap les boucles - Débutants
Ap   les boucles - DébutantsAp   les boucles - Débutants
Ap les boucles - Débutants
Romaric Saounde Tsopnang
 
Ap loops2 - Beginner
Ap   loops2 - BeginnerAp   loops2 - Beginner
Ap loops2 - Beginner
Romaric Saounde Tsopnang
 
Ao light nxt2 - Beginner
Ao   light nxt2 - BeginnerAo   light nxt2 - Beginner
Ao light nxt2 - Beginner
Romaric Saounde Tsopnang
 
An capteur de couleur - Débutant
An   capteur de couleur - DébutantAn   capteur de couleur - Débutant
An capteur de couleur - Débutant
Romaric Saounde Tsopnang
 
An color Sensor - Beginner
An   color Sensor - BeginnerAn   color Sensor - Beginner
An color Sensor - Beginner
Romaric Saounde Tsopnang
 
Al capteur tactile - Débutant
Al   capteur tactile - DébutantAl   capteur tactile - Débutant
Al capteur tactile - Débutant
Romaric Saounde Tsopnang
 
Ak custom imagessounds2 - Beginner
Ak   custom imagessounds2 - BeginnerAk   custom imagessounds2 - Beginner
Ak custom imagessounds2 - Beginner
Romaric Saounde Tsopnang
 
Ak image et son standard - Débutant
Ak   image et son standard - DébutantAk   image et son standard - Débutant
Ak image et son standard - Débutant
Romaric Saounde Tsopnang
 
Aj display2 - Beginner
Aj   display2 - BeginnerAj   display2 - Beginner
Aj display2 - Beginner
Romaric Saounde Tsopnang
 
Aj affichage - Débutant
Aj   affichage - DébutantAj   affichage - Débutant
Aj affichage - Débutant
Romaric Saounde Tsopnang
 
Ai turning2 - Beginner
Ai   turning2 - BeginnerAi   turning2 - Beginner
Ai turning2 - Beginner
Romaric Saounde Tsopnang
 
Ai virages - Débutant
Ai   virages - DébutantAi   virages - Débutant
Ai virages - Débutant
Romaric Saounde Tsopnang
 
Ah pseudocode-fr - Débutant
Ah   pseudocode-fr - DébutantAh   pseudocode-fr - Débutant
Ah pseudocode-fr - Débutant
Romaric Saounde Tsopnang
 
Ag moving straight2 - Beginner
Ag   moving straight2 - BeginnerAg   moving straight2 - Beginner
Ag moving straight2 - Beginner
Romaric Saounde Tsopnang
 
Ag deplacement droit - Débutant
Ag   deplacement droit - DébutantAg   deplacement droit - Débutant
Ag deplacement droit - Débutant
Romaric Saounde Tsopnang
 
Af port view2 - Beginner
Af   port view2 - BeginnerAf   port view2 - Beginner
Af port view2 - Beginner
Romaric Saounde Tsopnang
 
Af vue des portes - Débutant
Af   vue des portes - DébutantAf   vue des portes - Débutant
Af vue des portes - Débutant
Romaric Saounde Tsopnang
 
Ae common issues2 - Beginner
Ae   common issues2 - BeginnerAe   common issues2 - Beginner
Ae common issues2 - Beginner
Romaric Saounde Tsopnang
 
Ae problemes frequents - Débutant
Ae   problemes frequents - DébutantAe   problemes frequents - Débutant
Ae problemes frequents - Débutant
Romaric Saounde Tsopnang
 

More from Romaric Saounde Tsopnang (20)

Aq les conditionnelles - Débutant
Aq   les conditionnelles - DébutantAq   les conditionnelles - Débutant
Aq les conditionnelles - Débutant
 
Ap les boucles - Débutants
Ap   les boucles - DébutantsAp   les boucles - Débutants
Ap les boucles - Débutants
 
Ap loops2 - Beginner
Ap   loops2 - BeginnerAp   loops2 - Beginner
Ap loops2 - Beginner
 
Ao light nxt2 - Beginner
Ao   light nxt2 - BeginnerAo   light nxt2 - Beginner
Ao light nxt2 - Beginner
 
An capteur de couleur - Débutant
An   capteur de couleur - DébutantAn   capteur de couleur - Débutant
An capteur de couleur - Débutant
 
An color Sensor - Beginner
An   color Sensor - BeginnerAn   color Sensor - Beginner
An color Sensor - Beginner
 
Al capteur tactile - Débutant
Al   capteur tactile - DébutantAl   capteur tactile - Débutant
Al capteur tactile - Débutant
 
Ak custom imagessounds2 - Beginner
Ak   custom imagessounds2 - BeginnerAk   custom imagessounds2 - Beginner
Ak custom imagessounds2 - Beginner
 
Ak image et son standard - Débutant
Ak   image et son standard - DébutantAk   image et son standard - Débutant
Ak image et son standard - Débutant
 
Aj display2 - Beginner
Aj   display2 - BeginnerAj   display2 - Beginner
Aj display2 - Beginner
 
Aj affichage - Débutant
Aj   affichage - DébutantAj   affichage - Débutant
Aj affichage - Débutant
 
Ai turning2 - Beginner
Ai   turning2 - BeginnerAi   turning2 - Beginner
Ai turning2 - Beginner
 
Ai virages - Débutant
Ai   virages - DébutantAi   virages - Débutant
Ai virages - Débutant
 
Ah pseudocode-fr - Débutant
Ah   pseudocode-fr - DébutantAh   pseudocode-fr - Débutant
Ah pseudocode-fr - Débutant
 
Ag moving straight2 - Beginner
Ag   moving straight2 - BeginnerAg   moving straight2 - Beginner
Ag moving straight2 - Beginner
 
Ag deplacement droit - Débutant
Ag   deplacement droit - DébutantAg   deplacement droit - Débutant
Ag deplacement droit - Débutant
 
Af port view2 - Beginner
Af   port view2 - BeginnerAf   port view2 - Beginner
Af port view2 - Beginner
 
Af vue des portes - Débutant
Af   vue des portes - DébutantAf   vue des portes - Débutant
Af vue des portes - Débutant
 
Ae common issues2 - Beginner
Ae   common issues2 - BeginnerAe   common issues2 - Beginner
Ae common issues2 - Beginner
 
Ae problemes frequents - Débutant
Ae   problemes frequents - DébutantAe   problemes frequents - Débutant
Ae problemes frequents - Débutant
 

Recently uploaded

GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 

Recently uploaded (20)

GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 

Ah pseudocode2 - Beginner

  • 2. Lesson Objectives 1. Learn what pseudocode means 2. Learn why you use pseudocode 3. Learn to write pseudocode for a common task 4. Learn how to plan programs for First Lego League © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 2
  • 3. What is Pseudocode? • Robots follow directions that people give them. They need detailed, step-by- step instructions to complete a task. • It is a set of detailed notes that the programmer can use to write the code when they are ready. • It is not written in any particular programming language. Pseudocode can be in part English and part code. • Pseudocode allows the programmer to communicate his/her plan with others • Pseudocode is detailed enough to create the actual code © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 3
  • 4. Why is Pseudocode Important? • A great way to learn the importance of good pseudocode is to try writing instructions for something simple: ◦ How to make a sandwich, how to decorate a cake, how to plant a seed, etc. ◦ Students should write the instructions and then the teacher should follow them. ◦ Then compare the results. • Some examples of student responses for a peanut butter and jelly sandwich: ◦ Student 1 wrote: “Put the peanut butter on the bread”. So the teacher placed the entire jar on the slices of bread. ◦ Student 2 wrote: “Take bread and spread the peanut butter on it”. So the teacher spread peanut butter on the entire loaf. ◦ Student 3 wrote: “Take 2 slices of bread and spread peanut butter and jelly on them”. So the teacher spread peanut butter and jelly on both sides of both slices. • Communicating instructions well is important!  © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 4
  • 5. Sandwich Pseudocode Solution • Take exactly two pieces of bread. • Take one piece of bread that is not covered with peanut butter on any side and use a knife to spread peanut butter on one side • Take a second piece of bread that is not covered with jelly on any side and use a knife to spread jelly on one side • Place the jelly side of the second piece of bread against the peanut butter side of the first piece of bread. • Place the combined pieces of bread on plate © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 5
  • 6. Writing Pseudocode for a Robot 1) Write down the goal of the program. What does the robot have to do? 2) Think about how the robot will achieve this goal. What are the specific steps? 3) Write down each step the robot will take. Start with Step 1 and continue on. 4) Make sure you write down if the robot has to repeat a task. 5) Does the robot keep doing this task forever or does it end? © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 6
  • 7. Sample Pseudocode for a Challenge Goal: Robot needs to go once around a square box. It starts at the line and faces north. It will end on the line facing north. Step 1: Go forward 10 inches Step 2: Turn left 90 degrees Step 3: Repeat steps 1 and 2 three more times You can write this pseudocode on a piece of paper or even in a comment block inside the EV3- G code. Use the pseudocode to program the solution © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) N 7
  • 8. Pseudocode FOR A SET OF MISSIONS • If you have a series of missions for your robot to complete, planning ahead can be a big help. • You can draw out the path your robot needs to take and then write out the instructions for the robot step-by-step © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) 8
  • 9. Sample PLANNING TOOLS for First Lego League © EV3LESSONS.COM, 2016, (LAST EDIT: 07/04/2016) Both these resources are available on EV3Lessons.com 9
  • 10. End of the lesson 10