CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 14: Number Spelling Mini-project.

Slides:



Advertisements
Similar presentations
W4: September 16-20, 2013 Week 5. Monday, September 16 Turn Homework in Different Types of Maps Map Lecture Homework: Quiz on Monday, September 23 rd.
Advertisements

Today Is Sunday By Dr Jean.
TEST YOUR READING SKILLS : See a day of the week written in French. Say what you think it is. Click to check your answer.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 4: Review Conditional & Word Stuff.
Ain't It A Shame 1-4 Aint it a shame to work on Sunday, Aint it a shame, (a working shame,) Aint it a shame to work on Sunday, Aint it a shame, (a working.
Unit 1.4 Personal Narrative Thursday, Sept. 5 and Friday, Sept. 6.
By Theresa Taderera Out and up Page 1 >introductionintroduction Page 2 > assault course Page 3> what we dowhat we do Page 4 > café Page 5> map> map Page.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 17: HOF and Tick-Tack-Toe.
QUESTION 1 What day is it today? A) I’m Tuesday. B) I have Tuesday. C) Tuesday. D) It’s Tuesday.
CS3 Fall 2005 Lecture 11: Finish higher order functions Midterm Prep.
2012 CALENDAR. JANUARY 2012 Sunday 日 Monday 月 Tuesday 火 Wednesday 水 Thursday 木 Friday 金 Saturday 土
Slide 1 CS3: Lecture 8 Advanced recursion. Slide 2 Schedule Oct 10Advanced recursion Oct 17Number-spelling Miniproject Oct 24Higher order procedures Oct.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 18: HOF.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 26: Printing and Stuff.
Slide 1 CS3 Week 8: Recursion. Slide 2 Midterm 1 You did great If you need a re- grade, see the person that graded that question Solutions are available.
Slide 1. Slide 2 Administrivia Mid-semester survey this week (Thur/Fri) –you NEED to do this. Interviews should be starting in a few weeks. I apologize.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 12: Homework stuff and Accumulating Recursion.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 19: HOF Problems.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 6: Mini-Project Prep.
Slide 1 Midterm 1 Midterm 1: Feb 28 th (next week). –In the lecture slot, plus 20 minutes (4:10-5:30 pm, 120 Latimer) –Everything we’ve covered, including.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 10: Recursion Rocks Again!
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 13: Bugs and Two Stage Recursion.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 20: Tree Recursion.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 1: Introduction & Administration.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 11: Accumulating Recursion.
Feb 28More complicated recursions March 7Tree recursion, etc. Number-spelling Miniproject (#2) March 14Higher order procedures March 21Spring Break March.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 8: Recursion.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 9: Recursion Rocks!
CS 3 Final Review Gilbert Chou, Jenny Franco and Colleen Lewis December 14, pm GPB.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 2: Review – Writing Procedures.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 16: Let and Lambda.
Saturday May 02 PST 4 PM. Saturday May 02 PST 10:00 PM.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 25: Trees and Generalized Lists.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 27: Review – most children and truth about cons.
Slide 1 CS3 Fall 2005 Lecture 9: Higher Order Functions.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 7: Review.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 15: Procedures as Arguments.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 5: Difference Between Dates Case Study.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 24: Review for lists, map and member.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 3: Conditional Expressions.
Time Zones The World is divided up into 24 time zones. Each time zone is approximately 15 degrees of longitude wide. The time within each time zone has.
analysis, plug ‘n’ chug, & induction
ARISE Summer Institute UC Davis June 17-June 22, 2011.
Class Schedule Template SundayMondayTuesdayWednedayThursdayFridaySaturday 6 AM 7 AM 8 AM 9 AM 10 AM 11 AM 12 AM 1 PM 2 PM 3 PM 4 PM 5 PM 6 PM Title Classroom.
What day is today? What`s the date?. Sunday Monday Tuesday Wednesday Thursday Friday Saturday What day is today?
Days of the week instructions. Children can; Order the days of the week. Use sentence strips and activity cards to write sentences about what they do on.
Lecture 11.   Modular arithmetic is arithmetic in which numbers do not continue forever.  Modulo 7 has numbers 0, 1, 2, 3, 4, 5, and 6.  Modulo 5.
Spelling Test Review. Write the Spelling Words as They Appear on the Screen.
10/14/10 BR – What type of Chart is this? Be sure to hand in this week’s bellringers!
Click the button to begin. 12:25 What time does this clock show? 5:00 4:00.
More Python!. Lists, Variables with more than one value Variables can point to more than one value at a time. The simplest way to do this is with a List.
September 2, 2014 Goal: Getting to know our classmates a little better You will need: your journal, pen/pencil, poster Journal:
Good morning. Presented by Roksana Khanum Rimu Assistant Teacher Vagobanpur Government Primary School Sadullapur,Gaibandddha.
College work day Thursday, October 29, Thursday, 10/29 EQ: How can I complete my college applications by 11/1?  Take out your planner  Complete.
TODAY IS MONDAY THE 16 th OF NOVEMBER 2015 ON MONDAY WE ARE WORKING WITH THE LAPTOP.
Expense Report Total Miles MONDAY 5 5 TUESDAY WEDNESDAY 6 6 THURSDAY FRIDAY SATURDAY 0 SUNDAY0 TOTAL 23.
BUILDING JAVA PROGRAMS CHAPTER 7 Arrays days until the AP Computer Science test.
What are the importance of the days of the week ?
The birthday calendar 2B : Unit 6 Days of the week Days of the week.
Happy Days by Charles Fox and Norman Gimbel PowerPoint by Camille Page.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Daily Math Review September 2-6, Monday Solve the following problems with strategies and/or algorithms 5, = 9, = 3, =
English 9A Bellwork Week Five. Thursday- Pop Quiz! You may use last week’s notes, as well as previous bellwork, on today’s quiz.
Days of the week and my activities. Oscar Sada ESL 1 Mrs. Echeverry
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Third Edition by Tony Gaddis.
My Plan to Go to Around the world By: Benedict/5C.
WITH Ada.Text_IO; PROCEDURE Three_Days IS | Finds yesterday and tomorrow, given today.
PART OF SPEECH DEFINITION SYNONYM SENTENCE NAME TEACHER AND DATE1 WORDS OF THE WEEK.
PART OF SPEECH DEFINITION SYNONYM SENTENCE NAME TEACHER AND DATE1 WORDS OF THE WEEK.
مفاهیم بهره وري.
Presentation transcript:

CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 14: Number Spelling Mini-project

Adminstration Number Spelling Mini-project 2 DUE: Thursday at 11:59 pm Compress (Hwk12) occurs-in? (Hwk13) DUE: Tuesday at 11:59 pm Design your project before you start

Today item instead of cond Testing Framework Tail vs. Embedded Recursion

Guideline: Use item instead of cond (define (get-day-name num) (cond ((equal? num 1) ‘Sunday) ((equal? num 2) ‘Monday) ((equal? num 3) ‘Tuesday) ((equal? num 4) ‘Wednesday) ((equal? num 5) ‘Thursday) ((equal? num 6) ‘Friday) ((equal? num 7) ‘Saturday))) (define (get-day-name num) (item num ‘(Sunday Monday Tuesday Wednesday Thursday Friday Saturday))

Testing Framework (add-test-case test-name expected-return-value scheme-expression) (run-test-cases) (clear-test-cases)

Random Administration DO NOT CODE BEFORE YOU HAVE A PLAN! Put yours and your partners names and logins on the top You should be able to use scheme->sendBuffer without errors 40 is spelled Forty Please no “and”s

Tail versus “embedded” recursions A tail recursion has no combiner, so it can end as soon as a base case is reached Compilers can do this efficiently An embedded recursion needs to combine up all the recursive steps to form the answer The poor compiler has to keep track everything

Patterns in recursion (1-3 of 6) Mapping does something to every part of the input sentence Counting Counts the number of elements that satisfy a predicate Finding Return the first element that satisfies predicate (or, return rest of sentence)

Patterns in recursion (4-6 of 6) Filtering Keep or discard elements of input sentence Testing A predicate that checks that every or any element of input satisfies a test Combining Combines the elements in some way…

Make a Poster Include Name of pattern Description of the pattern Example Code Examples of procedures that follow the pattern