

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


SI 182 : Building Applications for Information Environments Assignme nt 5 - Statistics with Spam Due Date: Friday February 15, 2008 at 11:50PM This program reads through a mail log, looks at the Spam confidence values and produces the maximum, minimum, and average of the Spam confidence. X-DSPAM-Processed: Sat Jan 5 09:14:16 2008 X-DSPAM-Confidence: 0. X-DSPAM-Probability: 0. The spam confidence value appears on lines like the above. You can expect that the prefix will match exactly and there will be no leading spaces on the lines. The program is also to prompt for a file name to read. If the user simply presses enter, the program should read the file mbox-short.txt Here is an example of the program running: $ python numbers.py Enter file name: Assuming mbox-short.txt Max 0. Max 0. Ave 0. $ python numbers.py Enter file name:mbox.txt Max 0. Max 0. Ave 0. $
Here is an outline of the program:
Hand in your Python file to CTools. Study Sections: 6.2, 6.5.1, 11.2.