Abstract | ||
---|---|---|
Limericks, sonnets, haiku, and other forms of poetry each follow prescribed patterns that give the number of lines, the number of syllables on each line, and a rhyme scheme. For example, limericks are five lines long; the first, second, and fifth lines each have eight syllables and rhyme with each other; and the third and fourth lines each have five syllables and rhyme with each other. 1The Poetry Form Checker CS1 assignment (http://www.cs.ubc.ca/wccce/Nifty/2019/Poetry/) has students write code that reads poems from files and determines whether they are properly formed, including having the right number of syllables and the proper rhyme scheme for a particular poetry form such as a limerick or a sonnet.We specify a file format for describing poetry forms, including the number of syllables on each line and the rhyme scheme. The assignment makes use of the CMU Pronouncing Dictionary (http://www.speech.cs.cmu.edu/cgi-bin/cmudict), which provides word pronunciations using a plain-text format that includes syllabic stress levels.This assignment is suitable for the last assignment in a CS1 course, and has students manipulate files, dictionaries, lists, and strings. |
Year | DOI | Venue |
---|---|---|
2019 | 10.1145/3314994.3325080 | PROCEEDINGS OF THE 24TH WESTERN CANADIAN CONFERENCE ON COMPUTING EDUCATION (WCCCE '19) |
Keywords | DocType | Citations |
Education, assignments, homeworks, examples, repository, library, nifty, pedagogy | Conference | 0 |
PageRank | References | Authors |
0.34 | 0 | 4 |
Name | Order | Citations | PageRank |
---|---|---|---|
Paul Gries | 1 | 31 | 3.03 |
Jennifer Campbell | 2 | 80 | 11.92 |
Daniel Zingaro | 3 | 0 | 0.34 |
Tom Fairgrieve | 4 | 0 | 0.34 |