Due: February 27, 2012 | Points: 100 |
As for all earlier assignments, please put refinements for all your programs into one file called “refinements.txt” or “refinements.pdf”, and error journal entries for all your programs into one file called “errors.txt” or “errors.pdf”.
In the example outputs, what your program outputs is in typewriter font, what the user types is in italicized typewriter font, and the user typing “enter” or “return” is represented by the character “↵”. You don’t need to change the font, use italics, or show the “↵” in your output.
For example, if the file “xxx.txt” contains the words
wean example execution of the program would be:
people
these
united
states
what do I do (s word, a word, f file, p)? f xxx.txt↵
Added word 'we' to list
Added word 'people' to list
Added word 'these' to list
Added word 'united' to list
Added word 'states' to list
added words to wordlist
what do I do (s word, a word, f file, p)? p↵
1. when
2. in
3. the
4. course
5. of
6. human
7. events
8. we
9. people
10. these
11. united
12. states
what do I do (s word, a word, f file, p)? s states↵
'states' is word number 12
what do I do (s word, a word, f file, p)? ↵
Submit: Please turn in your program in the file “ls1.py”.
What URL should I fetch? http://www.rfc-editor.org/rfc/rfc1149.txt↵Submit: Please turn in your program in the file “urlread.py”.
1.
2.
3.
4.
5.
6.
7. Network Working Group D. Waitzman
8. Request for Comments: 1149 BBN STC
9. 1 April 1990
10.
11.
12. A Standard for the Transmission of IP Datagrams on Avian Carriers
13.
. . . skipping lines 14 through 112 . . .
113.
114. Waitzman [Page 2]
115.
ECS 10, Basic Concepts of Computing Winter Quarter 2012 |