SlideShare a Scribd company logo
1 of 10
IPO and Intro to Ruby Class 4 – Programmatic Problem-Solving
Introduction Problem Solving Approaches Mathematic Algorithmic Heuristic IPO: The black box The Language of Logic
Agenda Warm-up: Brain Teasers Review Assignment I /Complete Week 3  IPO and Problem Solving  Installing and Running Ruby An introduction to Ruby Programming  Variables and Data Types  Methods: Puts and Gets  String Methods Assignment II: Binary & Hexadecimal
IPO & Problem Solving IPO – a programmatic approach Problem Statement Output Input Process Notation Additional Information Diagram Approach Solution & Check
IPO Problem Solving - Practice Exercise: Confusion at the Restaurant What is the problem? What would the output look like? What inputs do you have? Process & Approach? Check?
IPO Problem Solving - Practice Exercise: Confusion at the Restaurant Debrief Issues with problem? Obstacles? Solution before Process? Innovation? Other points?
Introducing Ruby What is Ruby and how does it differ from other languages? Where do you get Ruby? How do you install it? Unique college lab setups Testing installation C:gt;  ruby –v Ruby development environments- RDE, etc.
Ruby Programming Basics Data Types: Integer, Float, String  Methods: Puts and Gets  Your first program!: Hello, World Variables: Assignment Arithmetic Operations String Methods: to_s, .to_i, .to_f , .capitalize, .reverse, upcase, downcase, .center(xx)
Summary IPO Ruby  Installing Environment variables Programming basics, methods Next Topic: Set Theory, Venn Diagrams
Assignment Assignment 2: Math Review II Binary/Hex Due start of next class Hand-in

More Related Content

Viewers also liked

Systemgroup управление проектами.лучшие практики
Systemgroup управление проектами.лучшие практикиSystemgroup управление проектами.лучшие практики
Systemgroup управление проектами.лучшие практикиsystemgroups
 
DDiH, think tank 2011, cmh oneglobe, hotel think tank
DDiH, think tank 2011, cmh oneglobe, hotel think tank DDiH, think tank 2011, cmh oneglobe, hotel think tank
DDiH, think tank 2011, cmh oneglobe, hotel think tank nenesse87
 
File 5 original
File 5 originalFile 5 original
File 5 originaltest prod1
 
Pro activecentrallondonsummary d02 (1)
Pro activecentrallondonsummary d02 (1)Pro activecentrallondonsummary d02 (1)
Pro activecentrallondonsummary d02 (1)P-ACL
 
Empowering Your Organization with SharePoint 2010 @ #STPAsia
Empowering Your Organization with SharePoint 2010 @ #STPAsiaEmpowering Your Organization with SharePoint 2010 @ #STPAsia
Empowering Your Organization with SharePoint 2010 @ #STPAsiaDux Raymond Sy
 

Viewers also liked (6)

Course psyed
Course psyedCourse psyed
Course psyed
 
Systemgroup управление проектами.лучшие практики
Systemgroup управление проектами.лучшие практикиSystemgroup управление проектами.лучшие практики
Systemgroup управление проектами.лучшие практики
 
DDiH, think tank 2011, cmh oneglobe, hotel think tank
DDiH, think tank 2011, cmh oneglobe, hotel think tank DDiH, think tank 2011, cmh oneglobe, hotel think tank
DDiH, think tank 2011, cmh oneglobe, hotel think tank
 
File 5 original
File 5 originalFile 5 original
File 5 original
 
Pro activecentrallondonsummary d02 (1)
Pro activecentrallondonsummary d02 (1)Pro activecentrallondonsummary d02 (1)
Pro activecentrallondonsummary d02 (1)
 
Empowering Your Organization with SharePoint 2010 @ #STPAsia
Empowering Your Organization with SharePoint 2010 @ #STPAsiaEmpowering Your Organization with SharePoint 2010 @ #STPAsia
Empowering Your Organization with SharePoint 2010 @ #STPAsia
 

Similar to Class 4 IPO and Intro to Ruby

First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016
First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016
First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016ManageIQ
 
Introduction to TDD
Introduction to TDDIntroduction to TDD
Introduction to TDDAhmed Misbah
 
My experience of Ruby Education in Taiwan
My experience of Ruby Education in TaiwanMy experience of Ruby Education in Taiwan
My experience of Ruby Education in TaiwanMu-Fan Teng
 
Math ∩ Programming - BRUG Meetup Oct 2019
Math ∩ Programming - BRUG Meetup Oct 2019Math ∩ Programming - BRUG Meetup Oct 2019
Math ∩ Programming - BRUG Meetup Oct 2019Abhiram R
 
Navigating API Documentation: Tips from the Trenches
Navigating API Documentation: Tips from the Trenches Navigating API Documentation: Tips from the Trenches
Navigating API Documentation: Tips from the Trenches Nordic APIs
 
Overcome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challengesOvercome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challengesiCiDIGITAL
 
Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager
Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager
Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager Mark Kelley
 
Intro To Ror
Intro To RorIntro To Ror
Intro To Rormyuser
 
Cracking The Technical Interview
Cracking The Technical InterviewCracking The Technical Interview
Cracking The Technical Interviewcareercup
 
Quality assurance in the early stages of the product
Quality assurance in the early stages of the productQuality assurance in the early stages of the product
Quality assurance in the early stages of the productMaksym Vovk
 
Whay QA- engineers should know how to code
Whay QA- engineers should know how to codeWhay QA- engineers should know how to code
Whay QA- engineers should know how to codeQA Club Kiev
 
Surviving the technical interview
Surviving the technical interviewSurviving the technical interview
Surviving the technical interviewEric Brooke
 
Do you want a software job
Do you want a software jobDo you want a software job
Do you want a software jobIan Brockbank
 
Introduction to R for Quantitative Research
Introduction to R for Quantitative ResearchIntroduction to R for Quantitative Research
Introduction to R for Quantitative ResearchParthasarathi E
 
When develpment met test(shift left testing)
When develpment met test(shift left testing)When develpment met test(shift left testing)
When develpment met test(shift left testing)SangIn Choung
 
How to Prepare for the OCPJP 8 Exam?
How to Prepare for the OCPJP 8 Exam?How to Prepare for the OCPJP 8 Exam?
How to Prepare for the OCPJP 8 Exam?Ganesh Samarthyam
 
00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introductionmaznabili
 

Similar to Class 4 IPO and Intro to Ruby (20)

First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016
First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016
First Pull Request - Sergio Ocon - ManageIQ Design Summit 2016
 
Introduction to TDD
Introduction to TDDIntroduction to TDD
Introduction to TDD
 
My experience of Ruby Education in Taiwan
My experience of Ruby Education in TaiwanMy experience of Ruby Education in Taiwan
My experience of Ruby Education in Taiwan
 
Math ∩ Programming - BRUG Meetup Oct 2019
Math ∩ Programming - BRUG Meetup Oct 2019Math ∩ Programming - BRUG Meetup Oct 2019
Math ∩ Programming - BRUG Meetup Oct 2019
 
Navigating API Documentation: Tips from the Trenches
Navigating API Documentation: Tips from the Trenches Navigating API Documentation: Tips from the Trenches
Navigating API Documentation: Tips from the Trenches
 
Overcome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challengesOvercome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challenges
 
Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager
Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager
Case Study: Time Warner Cable's Formula for Maximizing Adobe Experience Manager
 
Intro To Ror
Intro To RorIntro To Ror
Intro To Ror
 
Cracking The Technical Interview
Cracking The Technical InterviewCracking The Technical Interview
Cracking The Technical Interview
 
Quality assurance in the early stages of the product
Quality assurance in the early stages of the productQuality assurance in the early stages of the product
Quality assurance in the early stages of the product
 
Whay QA- engineers should know how to code
Whay QA- engineers should know how to codeWhay QA- engineers should know how to code
Whay QA- engineers should know how to code
 
Surviving the technical interview
Surviving the technical interviewSurviving the technical interview
Surviving the technical interview
 
Do you want a software job
Do you want a software jobDo you want a software job
Do you want a software job
 
Introduction to R for Quantitative Research
Introduction to R for Quantitative ResearchIntroduction to R for Quantitative Research
Introduction to R for Quantitative Research
 
Lec 01 introduction
Lec 01   introductionLec 01   introduction
Lec 01 introduction
 
Php myths
Php mythsPhp myths
Php myths
 
When develpment met test(shift left testing)
When develpment met test(shift left testing)When develpment met test(shift left testing)
When develpment met test(shift left testing)
 
How to Prepare for the OCPJP 8 Exam?
How to Prepare for the OCPJP 8 Exam?How to Prepare for the OCPJP 8 Exam?
How to Prepare for the OCPJP 8 Exam?
 
00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction
 
Lecture 1-3.ppt
Lecture 1-3.pptLecture 1-3.ppt
Lecture 1-3.ppt
 

More from Stephen Parsons

Atlantic Woodworkers Website Strategy
Atlantic Woodworkers Website StrategyAtlantic Woodworkers Website Strategy
Atlantic Woodworkers Website StrategyStephen Parsons
 
Chairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGMChairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGMStephen Parsons
 
Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11Stephen Parsons
 
Class 6 truth tables and boolean math
Class 6   truth tables and boolean mathClass 6   truth tables and boolean math
Class 6 truth tables and boolean mathStephen Parsons
 
Class 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn DiagramsClass 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn DiagramsStephen Parsons
 
Class 3 Binary & Hexadecimal
Class 3 Binary & HexadecimalClass 3 Binary & Hexadecimal
Class 3 Binary & HexadecimalStephen Parsons
 
Class 1 introduction to logic & problem solving
Class 1   introduction to logic & problem solvingClass 1   introduction to logic & problem solving
Class 1 introduction to logic & problem solvingStephen Parsons
 
Portfolio Of A Community
Portfolio Of A CommunityPortfolio Of A Community
Portfolio Of A CommunityStephen Parsons
 
Cause & effect analysis part 2
Cause & effect analysis part 2Cause & effect analysis part 2
Cause & effect analysis part 2Stephen Parsons
 
Cause & effect analysis part 1
Cause & effect analysis part 1Cause & effect analysis part 1
Cause & effect analysis part 1Stephen Parsons
 

More from Stephen Parsons (19)

Atlantic Woodworkers Website Strategy
Atlantic Woodworkers Website StrategyAtlantic Woodworkers Website Strategy
Atlantic Woodworkers Website Strategy
 
Chairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGMChairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGM
 
Class 10 Arrays
Class 10 ArraysClass 10 Arrays
Class 10 Arrays
 
Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11
 
Class 7 lecture notes
Class 7 lecture notesClass 7 lecture notes
Class 7 lecture notes
 
Class 6a ruby math
Class 6a   ruby mathClass 6a   ruby math
Class 6a ruby math
 
Class 6 truth tables and boolean math
Class 6   truth tables and boolean mathClass 6   truth tables and boolean math
Class 6 truth tables and boolean math
 
Class 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn DiagramsClass 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn Diagrams
 
Class 3 Binary & Hexadecimal
Class 3 Binary & HexadecimalClass 3 Binary & Hexadecimal
Class 3 Binary & Hexadecimal
 
Class 2 Math I
Class 2 Math IClass 2 Math I
Class 2 Math I
 
Class 1 introduction to logic & problem solving
Class 1   introduction to logic & problem solvingClass 1   introduction to logic & problem solving
Class 1 introduction to logic & problem solving
 
Portfolio Of A Community
Portfolio Of A CommunityPortfolio Of A Community
Portfolio Of A Community
 
Cause & effect analysis part 2
Cause & effect analysis part 2Cause & effect analysis part 2
Cause & effect analysis part 2
 
Cause & effect analysis part 1
Cause & effect analysis part 1Cause & effect analysis part 1
Cause & effect analysis part 1
 
Class 11 lecture notes
Class 11 lecture notesClass 11 lecture notes
Class 11 lecture notes
 
Class 10 Lecture Notes
Class 10  Lecture  NotesClass 10  Lecture  Notes
Class 10 Lecture Notes
 
Class 9 Lecture Notes
Class 9 Lecture NotesClass 9 Lecture Notes
Class 9 Lecture Notes
 
Class 8 Lecture Notes
Class 8 Lecture NotesClass 8 Lecture Notes
Class 8 Lecture Notes
 
Deck Project Phase II
Deck Project Phase IIDeck Project Phase II
Deck Project Phase II
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

Class 4 IPO and Intro to Ruby

  • 1. IPO and Intro to Ruby Class 4 – Programmatic Problem-Solving
  • 2. Introduction Problem Solving Approaches Mathematic Algorithmic Heuristic IPO: The black box The Language of Logic
  • 3. Agenda Warm-up: Brain Teasers Review Assignment I /Complete Week 3 IPO and Problem Solving Installing and Running Ruby An introduction to Ruby Programming Variables and Data Types Methods: Puts and Gets String Methods Assignment II: Binary & Hexadecimal
  • 4. IPO & Problem Solving IPO – a programmatic approach Problem Statement Output Input Process Notation Additional Information Diagram Approach Solution & Check
  • 5. IPO Problem Solving - Practice Exercise: Confusion at the Restaurant What is the problem? What would the output look like? What inputs do you have? Process & Approach? Check?
  • 6. IPO Problem Solving - Practice Exercise: Confusion at the Restaurant Debrief Issues with problem? Obstacles? Solution before Process? Innovation? Other points?
  • 7. Introducing Ruby What is Ruby and how does it differ from other languages? Where do you get Ruby? How do you install it? Unique college lab setups Testing installation C:gt; ruby –v Ruby development environments- RDE, etc.
  • 8. Ruby Programming Basics Data Types: Integer, Float, String Methods: Puts and Gets Your first program!: Hello, World Variables: Assignment Arithmetic Operations String Methods: to_s, .to_i, .to_f , .capitalize, .reverse, upcase, downcase, .center(xx)
  • 9. Summary IPO Ruby Installing Environment variables Programming basics, methods Next Topic: Set Theory, Venn Diagrams
  • 10. Assignment Assignment 2: Math Review II Binary/Hex Due start of next class Hand-in

Editor's Notes

  1. We have discussed the idea before that there are many approaches to problem-solving, and one of the things that good problem-solvers must do, is to identify strategies for when to use one approach over another. Some of the approaches we have identified include:…One approach that we will look at today is inspired by the black-box philosophy of PS: that given the input and understanding what form the output should take, the task of solving a problem comes down to processing that input to become output. All you need are strategies and tools to set up the processing…and that process generally uses one or more of these methods.Learning to express oneself in terms of an algorithmic solution, requires us to use specific “language” of logic – both in terms of setting up the problem and using the language of the processing environment. Today we will experiment with an IPO tool to begin familiarizing ourselves with the idea of algorithmic approaches and we hope to even apply this a little (and begin learning a new language) in the Ruby environment.
  2. So here is what I propose for an agenda…OK?
  3. HANDOUT: IPO sheet…use a dimensional analysis exercise as a sample: how many tsp in a quart?IPO is a form of system analysis…always start a programmatic problem by doing the analysis or else you will waste time later as you near a solution. Having a clear understanding where you are going and how will almost always benefit you in time, effort and frustration.Problem Statement – Rephrase in your own words (this may be the most important step as per dimensional analysis)Output – what is the form of the output? What is the measure, what level of accuracy, what format: report/table/list?Input – not all info is useful inputNotation – set up variables, symbols, scopeDiagram – Flowchart? Table? Image? Characters?Approach – mathematical problem? Deduction? Induction? Substitutions? Rules/laws? Assumptions?Solution & Check – what would prove the solution?
  4. Programmatic is methodic – take it one step at a time…DO NOT TRY TO SOLVE THIS PROBLEM (until you have done the analysis).
  5. Any problem stating the problem? Let’s hear your statements. Feedback on that?Any obstacles in creating the statement or filling in any other information? How many wanted to get right at the solution rather than setting up the analysis?What innovations did you consider? What were your approaches? Anyone have any other approaches?…
  6. Ruby is an open source programming environment and interpreted language - not compiled - requires an interpreter (ruby.exe)Ruby on Flash – downloading and unpackingSetting Path - getting batch files from my site - running the batch filesTesting the installation with command promptDownloading and running RDE (setting the path again?)
  7. Integers for all whole numbers – negative and positiveFloats for decimal valuesString for most things – and default for RubyFire up RDE and do a quick programputs “Hello, World” or puts ‘hello,world!’ (form of quotes is important, but not of interest right now)SAVE the file as an .rb in your rubygems folder (on the flash drive root preferably)
  8. So here is what we covered in this lesson…Next lesson…
  9. The assignment due for next class is…