Assignment 3 Part 1 (submitted by Peter on Feb 10, 16:06)

Beautiful Code
Ka-Ping Yee

AUTHORS:   Adam   Calvin   Chris   David   Derek   Hunter   Jacob   Jason   Jun   Karl   Kevin   Michael   Morgan   Nadia   Nerissa   Omair   Peter   Peterson   Ping   Richard   Rosie   Scott   Thanh   Varun

Download this file.

COMMENTS

Feb 16, 18:02 - Omair: The program did attempt to implement the some of the important functions. However, better coordination with the module was possible.

Please log in if you would like to add comments.

   

  1 #part one
  2 
  3 import speling
  4 
  5 def readfile(file):
  6     """Read file and return it"""
  7     file = open(file)
  8     return file
  9 
 10 def parsefile(file):
 11     """Parse file and return the parsed file"""
 12     parsed = file.split()
 13     return parsed
 14 
 15 def checkdocspelling(doc):
 16     """Check the documents spelling"""
 17     doc = parsefile(readfile(doc))
 18     spellChkText(doc)
 19     return