CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 4: Review Conditional & Word Stuff.

Slides:



Advertisements
Similar presentations
Introduction to Programming
Advertisements

Code Blocks and Indentation. Indentation is important Think of a recipe - Chocolate Cake (Mmmmmm.... Chocolate Cake....) 1. Make the cake 2. Put the frosting.
Basque Cake meaning of the basque symbol lauburu ( meaning: four- heads): The Lauburu is a mythological symbol to denote the four elements out of which.
Programming Tools for Solution Development Module 3 Lesson 2 Assignment: Notes.
How to Make a Simple Birthday Cake  Have you ever wanted to make a birthday cake for a loved one? Well, here is how to make a simple birthday cake. All.
In Thunder Cake, what weather conditions did the characters need in order to bake their cake? A thunder storm!
The Process Paragraph Unit -4-.
HOW TO Make a chocolate cake… Molly K and Andrew W Mrs. Gaspari English February 2012.
1.02 I Preparation Tasks List
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 17: HOF and Tick-Tack-Toe.
© 2011 wheresjenny.com BROWNIES SERVINGS: 16 PIECES PREPARATION TIME : ONE HOUR.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 18: HOF.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 26: Printing and Stuff.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 14: Number Spelling Mini-project.
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.
CS3: Introduction to Symbolic Programming Spring 2006Nate Titterton Lecture 4: "Difference Between Dates" and data abstraction.
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.
CS3: Introduction to Symbolic Programming Spring 2006Nate Titterton Lecture 2: Introduction, and Conditionals.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 8: Recursion.
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 9: Recursion Rocks!
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.
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.
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.
Math Math Math Why do we study math? First of all, it’s all around us! First of all, it’s all around us!
CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 3: Conditional Expressions.
By: Shaelyn Laurie How To Bake A Cake. Step 1: The Recipe Ingredients 2 cups (500 mL) sugar 4 eggs 2-1/2 cups (625 mL) all-purpose flour 1 cup (250 mL)
Transition Words Cake Recipe.
What we did first First we researched the internet to find a good recipe to make a cake. We decided on chocolate muffins from
Simple Past Monday, July 27th, Simple Past Monday, July 27th, 2015.
RECIPE. NAME: Three chocolates cake. INGREDIENTS 3 cups 1 1/2 tsp 3/4 tsp 1 1/2 tsp 2 2/3 cups 1 cup + 2 Tb 1 cup + 2 Tb 1 cup + 2 Tb 5 large or 4 Jumbo.
How To Bake A Cake Kayla Golack Period Exer03.
Have you ever had cake and jello at the same time?
Nicole’s Burger Cake Procedure (:. Step 1: Gather the Ingredients Ingredients: 1 Betty Crocker Devil’s food cake mix 1 French Vanilla Betty Crocker cake.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
Conjunction A conjunction is a compound statement formed by combining two simple sentences using the word “AND”. A conjunction is only true when both.
How to make a BIG sponge cake! By Gina kinsman.. Ingredients! You will need: ½ cup of milk 2 teaspoons & table spoons of unsalted butter 8 large eggs.
THAT WAS A PIECE OF CAKE “Show Me How” By: Kathryn Stone.
Algorithm Prepared by Arch PhD Antonino Di Raimo A quick introduction to the concept of algorithm.
FROM SCRATCH UTENSILS NEEDED Original recipe makes 1 - 9x13 inch cake 9X13 Dish Pan Large Bowl.
The Apple Pie Meurotte TIME OF PREPARATION :25 min COOKING TIME: 20 min Ingredients: For the tart: _Pastry _500 G apples (Golden) C. _1 a teaspoon of cinnamon.
This is a cupcake that is great for Halloween Very festive And not to mention, good! Can be altered to fit different holidays.
2 cups Sugar 1/2 cup Butter 1/2 cup Hershey's Cocoa 1 teaspoon Vanilla 1 cup Boiling Folgers Coffee 1/2 cup Buttermilk 2 Eggs 2 cups Flour 1/4 teaspoon.
How to make a cake Caroline edens 10 th 3B Mrs.Gaspari february
Crust:  ¾ cup ground pecans  ¾ cup graham cracker crumbs  3 tablespoons butter, melted Filling:  4 eggs  1- 1/4 cups sugar  2 teaspoons of vanilla.
 MATERIALS  INGREDIENTS  PROCESS  Sauce pan  Spatula  Plate.
CHOCOLATE CAKE by: Sean and Lorenzo. CHOCOLATE CAKE Chocolate Cake Ingredients: 3/4 cups butter or margarine, softened. 3 eggs. 2 cups sugar. 2 cups flour.
BANANA PANCAKES At a Glance Prep Time : 20 min Cook Time : 2 min Course : Breakfast, Brunch Type of Prep : Campfire, Fry, Grill Occasion : Birthdays, Christmas,
Sour Cream Pound Cake. 2 cups butter, softened 3 cups white sugar 6 eggs 1 teaspoon vanilla extract.
How to make Cake Balls By Amanda Swords.
How to Make a Cake Mrs. Janasik.
Chocolate Cake How To Narrative Procedure By. Mr. Eric Conte
Always use the oven gloves. Work safely and calmly
Fried Rice & Fortune Cookies
A recipe for chocolate cake.
What is a ?.
Recipes.
How to make a chocolate fudge cake
Peanut Butter Bars.
Code Blocks and Indentation
Let’s make Cookies!.
Unit 1: Principles of Computer Science
Recipe Chocolate cake.
Presentation transcript:

CS3L: Introduction to Symbolic Programming Summer 2008Colleen Lewis Lecture 4: Review Conditional & Word Stuff

Today Review Words and Sentences Review Conditionals Helper Procedures

Something we’ll see a lot of… Constructors: procedures to make a piece of data word and sentence Selectors: procedures to return parts of that data piece first, butfirst, etc.

Sentence and Word Selectors These work on sentences and words butfirst give you a sentence (for sentence) give you a word (for a word) butlast give you a sentence (for sentence) give you a word (for a word) first give you a word (always) last give you a word (always)

Sentence and Word Selectors These work on sentences and words butfirst give you a sentence (for sentence) give you a word (for a word) butlast give you a sentence (for sentence) give you a word (for a word) first give you a word (always) last give you a word (always)

IF & COND Statements (if ) (cond (predicate1return_expression1) (predicate2return_expression2) (else return_expression3))

and, or and not and - true only if all are true or - true if any are true not - true only if the one argument is false.

Helper Procedures Help make complicated programs simple Believe Make a cake Prepare the cake batter Bake the cake Ice the cake (define (make-cake x) (ice (bake (make-batter x))) (define (bake x) ‘(you baked))

Prepare the cake batter Get Bowl Get Beater Get Ingredients Measuring cups Electricticity Get bowl Get ingredients Stir

Bake the Cake Heat oven Put cake in oven Close door

Prepare the cooked Cake Let cool Remove from pan Ice it