During lab today you will begin writing the solutions for these problems:

   1. 
   
   Write a version of a palindrome recogniser that accepts a file name from 
   the user, reads each line, and prints the line to the screen if it is a 
   palindrome.
   2. 
   
   According to Wikipedia, a *semordnilap* is a word or phrase that spells 
   a *different* word or phrase backwards. ("Semordnilap" is itself 
   "palindromes" spelled backwards.) Write a semordnilap recogniser that 
   accepts a file name (pointing to a list of words) from the user and finds 
   and prints all pairs of words that are semordnilaps to the screen. For 
   example, if "stressed" and "desserts" is part of the word list, the the 
   output should include the pair "stressed desserts". Note, by the way, that 
   each pair by itself forms a palindrome!
   3. 
   
   Write a *procedure* char_freq_table() that, when run in a terminal, 
   accepts a file name from the user, builds a frequency listing of the 
   characters contained in the file, and prints a sorted and nicely formatted 
   character frequency table to the screen.
   
You start today and continue at home. They will count as problems a8p1, 
a8p2, a8p3 of lab 8. They will be graded next week. Next week you will also 
work on problems a8p4, a8p5, a8p6.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to