Fundamentals of Computer Science I (CS151 2003F)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Guidelines for Lab Writeups]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[Scheme Report]
[Glimmer Scheme Reference]
[CSC151.01 (Gum)]
[CSC151 2003S]
[CSC151 2002F]
[SamR]
Back to Characters and Strings. On to Repetition through Recursion.
Held: Friday, 19 September 2003
Summary: Today we will consider how to write a program that converts normal speech into something that resembles pirate speech.
Related Pages:
slams.ss library.pirate.ss, a sample file.Assignments
Notes:
Overview:
(split string) procedure (mine) splits a string into a list of words.
(join list-of-strings) procedure (mine) joins them back together again.
(string=? string1 string2) procedure (standard) can be used to compare two strings in preparation for replacment.
(random whole-number) procedure can be used to generate an unpredictible whole number between 0 (inclusive) and the number specified (exclusive).
(map procedure list) procedure can be used to apply a procedure to each element of a list.
Back to Characters and Strings. On to Repetition through Recursion.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Guidelines for Lab Writeups]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[Scheme Report]
[Glimmer Scheme Reference]
[CSC151.01 (Gum)]
[CSC151 2003S]
[CSC151 2002F]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue Dec 9 13:59:38 2003.
The source to the document was last modified on Mon Sep 1 13:30:51 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2003F/Outlines/outline.14.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby