A WONDERFULCOMPUTING CHRISTMAS             By:             Deidre Regan             Deeksha Kola             Julia Dangtra...
This presentation consists of a collection of computer science terms we have learned         throughout the semester.   Th...
A List canbe 2 ormore thingsWhere the second isA list….
... Or null.
Rudolph comes first,because he is the carThe first element in anygood list...                           Then comes the cdr...
The Global Environment is Santa’s Wonderland, where allmagical creatures work hard to make dreams come trueevery Christmas...
The Parent Environments areSanta’s Workshop…
… Santa’s Home, where Santa spends timewith Mrs. Clause…
… the Reindeer Farm, where all the reindeerrest up for their long journey on Christmas Eve…
…and the Elf Lodge, where all ofSanta’s helpers live.
List Map
List Map List map takes a procedure and lis     Procedure:                     List:
List Map….and outputs a list whose elements are the results of applying the input procedure to
IfExpression::=>        if ExpressionPredicate                           ExpressionConsequent                           Ex...
If                            Wrap in         Else Wrap In (define (wrapping paper) (if (= girl) pink blue))
If                               then           Else (define (Did Santa Come) (if (= Santa came) emptyplate fullplate))
If Santa wants    to see how    many gifts he    has to deliver,    he can use list-    sum…..?   Define (list-sum p)    (...
List sum adds the value of the first       number in the list to the sum of the rest       of the numbers.  150           ...
Remember, always be optimistic if youwant Santa to bringpresents                  THE END.
Upcoming SlideShare
Loading in …5
×

Cs presentation

418 views
391 views

Published on

CS 1220 FALL 2011

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
418
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cs presentation

  1. 1. A WONDERFULCOMPUTING CHRISTMAS By: Deidre Regan Deeksha Kola Julia Dangtran Samah Hasan
  2. 2. This presentation consists of a collection of computer science terms we have learned throughout the semester. This story is meant to introduce computer science terms to children, and Show them how magical the computing world can be. This presentation consists of a collection of computer science terms we have learned Throughout the semester.
  3. 3. A List canbe 2 ormore thingsWhere the second isA list….
  4. 4. ... Or null.
  5. 5. Rudolph comes first,because he is the carThe first element in anygood list... Then comes the cdr, or those just behind Without them the list wouldn’t exist!
  6. 6. The Global Environment is Santa’s Wonderland, where allmagical creatures work hard to make dreams come trueevery Christmas. Global Environment: a special environment that has no parent environment and where all other environments descend from.
  7. 7. The Parent Environments areSanta’s Workshop…
  8. 8. … Santa’s Home, where Santa spends timewith Mrs. Clause…
  9. 9. … the Reindeer Farm, where all the reindeerrest up for their long journey on Christmas Eve…
  10. 10. …and the Elf Lodge, where all ofSanta’s helpers live.
  11. 11. List Map
  12. 12. List Map List map takes a procedure and lis Procedure: List:
  13. 13. List Map….and outputs a list whose elements are the results of applying the input procedure to
  14. 14. IfExpression::=> if ExpressionPredicate ExpressionConsequent ExpressionAlternate Expression that provides a way of using the result of one expression to select which of two possible expressions to evaluate
  15. 15. If Wrap in Else Wrap In (define (wrapping paper) (if (= girl) pink blue))
  16. 16. If then Else (define (Did Santa Come) (if (= Santa came) emptyplate fullplate))
  17. 17. If Santa wants to see how many gifts he has to deliver, he can use list- sum…..? Define (list-sum p) (if (null? p) 0 (+ (car p) (list-sum (cdr p))))
  18. 18. List sum adds the value of the first number in the list to the sum of the rest of the numbers. 150 200 90 210 = 650So if you had a list of numbers that told you how many presents Santa has in each bag, list-sum will tell you the total number of presents he has to deliver! Define (list-sum presents-in-bag) (if (null? presents-in-bag) 0 (+ (car presents-in-bag) (list-sum (cdr presents-in-bag))))
  19. 19. Remember, always be optimistic if youwant Santa to bringpresents  THE END.

×