SlideShare a Scribd company logo
Week 002
Problem Solving through
Flowcharts 1
Week 002: Problem Solving through Flowcharts 1
Flowcharts and Pseudocodes
“In this presentation, you will be presented with a
series of scenarios applicable to your daily lives. Those
scenarios will be converted to their flowchart and
pseudocode counterpart. I advice you to try and come
up with your version of the corresponding flowchart
and pseudocodes before proceeding to the succeeding
slides.”
James Michael Adoremos
Course Developer
Week 002: Problem Solving through Flowcharts 1
P01: Food Intake | Scenario
One of our daily routines is eating. However, you can
only eat if there is food already prepared for you. If
there are none, you should cook food on your own
before you take a big gulp.
Now, how will that look like if turned to flowchart and
pseudocode?
Week 002: Problem Solving through Flowcharts 1
P01: Food Intake | Flowchart
Week 002: Problem Solving through Flowcharts 1
P01: Food Intake | Pseudocode
FoodIntake()
1. DECLARE isFoodPrepared
2. SET isFoodPrepared TO CheckIfFoodIsPrepared()
3. IF NOT isFoodPrepared THEN
4. CALL PrepareFood()
5. END
6. CALL EatFood()
Week 002: Problem Solving through Flowcharts 1
P02: Weekend Routine | Scenario
Is it weekends? Is it weekends? That is one of the
questions we ask ourselves daily. We wake up in the
morning, check if it is weekends already. If it is, we sleep
again. If it is not, we take a bath.
Now, how will that look like if turned to flowchart and
pseudocode?
Week 002: Problem Solving through Flowcharts 1
P02: Weekend Routine | Flowchart
Week 002: Problem Solving through Flowcharts 1
P02: Weekend Routine | Pseudocode
WeekendRoutine()
1. DECLARE isWeekends
2. SET isWeekends TO CheckIfWeekends()
3. IF isWeekends THEN
4. CALL Sleep()
5. ELSE
6. CALL TakeBath()
7. END
Week 002: Problem Solving through Flowcharts 1
P03: Daily Chores | Scenario
We are given chores depending on the day. On
weekends, we are tasked to do the laundry. On
weekdays except Friday, we are tasked to do a general
cleaning. On Fridays, we are tasked to a grocery spree.
Now, how will that look like if turned to flowchart and
pseudocode?
Week 002: Problem Solving through Flowcharts 1
P03: Daily Chores | Flowchart
Week 002: Problem Solving through Flowcharts 1
P03: Daily Chores | Pseudocode
DailyChores()
1. DECLARE day
2. SET day TO GetDay()
3. IF day = “Saturday” OR day = “Sunday” THEN
4. CALL DoLaundry()
5. ELSE IF day = “Friday” THEN
6. CALL DoGrocery()
7. ELSE
8. CALL DoGeneralCleaning()
9. END
Week 002: Problem Solving through Flowcharts 1
P04: Study, Games and Everything Nice | Scenario
As students, we were forced to a study habit. On
weekdays, we are to study our lessons. On weekends,
we are free to play with the computer. After studying
and playing computer games, we still have time to
watch television.
Now, how will that look like if turned to flowchart and
pseudocode?
Week 002: Problem Solving through Flowcharts 1
P04: Study, Games and Everything Nice | Flowchart
Week 002: Problem Solving through Flowcharts 1
P04: Study, Games and Everything Nice | Pseudocode
StudyGamesAndEverythingNice()
1. DECLARE isWeekend
2. SET isWeekend TO GetIsWeekend()
3. IF isWeekend THEN
4. CALL DoStudyLesson()
5. ELSE
6. CALL DoPlayComputer()
7. END
8. CALL DoWatchTelevision()
Week 002: Problem Solving through Flowcharts 1
P05: Garden, Oh My Garden | Scenario
Imagine a huge house with a beautiful garden. With
that, you need to ensure the garden is kept well-
maintained. If it is messy, you should do something
about it. If you are the owner, call the caretaker to do
the gardening; if not, do the gardening yourself.
Now, how will that look like if turned to flowchart and
pseudocode?
Week 002: Problem Solving through Flowcharts 1
P05: Garden, Oh My Garden | Flowchart
Week 002: Problem Solving through Flowcharts 1
P05: Garden, Oh My Garden | Pseudocode
GardenOhMyGarden()
1. DECLARE isGardenMessy, amIOwner
2. SET isGardenMessy TO GetIsGardenMessy()
3. SET amIOwner TO GetAmIOwner()
4. IF isGardenMessy THEN
5. IF amIOwner THEN
6. CALL CallGardener()
7. ELSE
8. CALL DoGardening()
9. END
10. END

More Related Content

Recently uploaded

Advanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory SolutionsAdvanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory Solutionscontactcaysonandres
 
Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.commercialvansolutions
 
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to TellWondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to TellVic Auto Collision & Repair
 
The Future of Autonomous Vehicles | civilthings.com | Detailed information
The Future of Autonomous Vehicles | civilthings.com |  Detailed informationThe Future of Autonomous Vehicles | civilthings.com |  Detailed information
The Future of Autonomous Vehicles | civilthings.com | Detailed informationgettygaming1
 
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理amvovau
 
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理psavhef
 
gtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
gtycccccccccccccccccccccccccccccccccccccccccccccccccccccccgtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
gtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc4thzenzstar
 
Tyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEATTyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEATkshamashah95
 
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'Hyundai Motor Group
 
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out HereWhy Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out HereMasters European & Gapanese Auto Repair
 

Recently uploaded (10)

Advanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory SolutionsAdvanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory Solutions
 
Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.
 
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to TellWondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
 
The Future of Autonomous Vehicles | civilthings.com | Detailed information
The Future of Autonomous Vehicles | civilthings.com |  Detailed informationThe Future of Autonomous Vehicles | civilthings.com |  Detailed information
The Future of Autonomous Vehicles | civilthings.com | Detailed information
 
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
 
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
 
gtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
gtycccccccccccccccccccccccccccccccccccccccccccccccccccccccgtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
gtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
 
Tyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEATTyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEAT
 
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
 
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out HereWhy Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

W2-Presentation-Problem Solving through Flowcharts 1.pdf

  • 1. Week 002 Problem Solving through Flowcharts 1
  • 2. Week 002: Problem Solving through Flowcharts 1 Flowcharts and Pseudocodes “In this presentation, you will be presented with a series of scenarios applicable to your daily lives. Those scenarios will be converted to their flowchart and pseudocode counterpart. I advice you to try and come up with your version of the corresponding flowchart and pseudocodes before proceeding to the succeeding slides.” James Michael Adoremos Course Developer
  • 3. Week 002: Problem Solving through Flowcharts 1 P01: Food Intake | Scenario One of our daily routines is eating. However, you can only eat if there is food already prepared for you. If there are none, you should cook food on your own before you take a big gulp. Now, how will that look like if turned to flowchart and pseudocode?
  • 4. Week 002: Problem Solving through Flowcharts 1 P01: Food Intake | Flowchart
  • 5. Week 002: Problem Solving through Flowcharts 1 P01: Food Intake | Pseudocode FoodIntake() 1. DECLARE isFoodPrepared 2. SET isFoodPrepared TO CheckIfFoodIsPrepared() 3. IF NOT isFoodPrepared THEN 4. CALL PrepareFood() 5. END 6. CALL EatFood()
  • 6. Week 002: Problem Solving through Flowcharts 1 P02: Weekend Routine | Scenario Is it weekends? Is it weekends? That is one of the questions we ask ourselves daily. We wake up in the morning, check if it is weekends already. If it is, we sleep again. If it is not, we take a bath. Now, how will that look like if turned to flowchart and pseudocode?
  • 7. Week 002: Problem Solving through Flowcharts 1 P02: Weekend Routine | Flowchart
  • 8. Week 002: Problem Solving through Flowcharts 1 P02: Weekend Routine | Pseudocode WeekendRoutine() 1. DECLARE isWeekends 2. SET isWeekends TO CheckIfWeekends() 3. IF isWeekends THEN 4. CALL Sleep() 5. ELSE 6. CALL TakeBath() 7. END
  • 9. Week 002: Problem Solving through Flowcharts 1 P03: Daily Chores | Scenario We are given chores depending on the day. On weekends, we are tasked to do the laundry. On weekdays except Friday, we are tasked to do a general cleaning. On Fridays, we are tasked to a grocery spree. Now, how will that look like if turned to flowchart and pseudocode?
  • 10. Week 002: Problem Solving through Flowcharts 1 P03: Daily Chores | Flowchart
  • 11. Week 002: Problem Solving through Flowcharts 1 P03: Daily Chores | Pseudocode DailyChores() 1. DECLARE day 2. SET day TO GetDay() 3. IF day = “Saturday” OR day = “Sunday” THEN 4. CALL DoLaundry() 5. ELSE IF day = “Friday” THEN 6. CALL DoGrocery() 7. ELSE 8. CALL DoGeneralCleaning() 9. END
  • 12. Week 002: Problem Solving through Flowcharts 1 P04: Study, Games and Everything Nice | Scenario As students, we were forced to a study habit. On weekdays, we are to study our lessons. On weekends, we are free to play with the computer. After studying and playing computer games, we still have time to watch television. Now, how will that look like if turned to flowchart and pseudocode?
  • 13. Week 002: Problem Solving through Flowcharts 1 P04: Study, Games and Everything Nice | Flowchart
  • 14. Week 002: Problem Solving through Flowcharts 1 P04: Study, Games and Everything Nice | Pseudocode StudyGamesAndEverythingNice() 1. DECLARE isWeekend 2. SET isWeekend TO GetIsWeekend() 3. IF isWeekend THEN 4. CALL DoStudyLesson() 5. ELSE 6. CALL DoPlayComputer() 7. END 8. CALL DoWatchTelevision()
  • 15. Week 002: Problem Solving through Flowcharts 1 P05: Garden, Oh My Garden | Scenario Imagine a huge house with a beautiful garden. With that, you need to ensure the garden is kept well- maintained. If it is messy, you should do something about it. If you are the owner, call the caretaker to do the gardening; if not, do the gardening yourself. Now, how will that look like if turned to flowchart and pseudocode?
  • 16. Week 002: Problem Solving through Flowcharts 1 P05: Garden, Oh My Garden | Flowchart
  • 17. Week 002: Problem Solving through Flowcharts 1 P05: Garden, Oh My Garden | Pseudocode GardenOhMyGarden() 1. DECLARE isGardenMessy, amIOwner 2. SET isGardenMessy TO GetIsGardenMessy() 3. SET amIOwner TO GetAmIOwner() 4. IF isGardenMessy THEN 5. IF amIOwner THEN 6. CALL CallGardener() 7. ELSE 8. CALL DoGardening() 9. END 10. END