Sixth Homework due 9 December (via ICON dropbox)

The sixth homework covers GUI programming. The problems aren't specified with unit testing, so you have the freedom to invent particulars of the solution. There are two programs to be written, revcase.py and hotcold.py. In the attached zipped folder, Homework6.zip these programs just contain comments that specify what the program should do, informally; also read the Hints file for some suggestions. Your task is to write Python code for these programs and document, using comments, exactly how to run them --- so that we know how to repeat your running programs and evaluate them for scores. In addition, the folder has a file you can use for input to revcase.py. You may wish to add other files before you submit the homework. These programs will be topics of the discussion section on Tuesday 7 December 2010.

Fifth Homework due 2 December (via ICON dropbox)

The fifth homework covers files and network programming. The problems aren't specified with unit testing, so you have the freedom to invent particulars of the solution. There are four programs to be written, partpage.py, revlines.py, myserver.py and sigvals.py. In the attached zipped folder, Homework5.zip these programs just contain comments that specify what the program should do, informally. Your task is to write Python code for these programs and document, using comments, exactly how to run them --- so that we know how to repeat your running programs and evaluate them for scores. In addition, the folder has some files you can use for input to programs that work with text files. You may wish to add other files before you submit the homework. The myserver.py program needs to use some HTML, and further information about that will be a topic of the discussion section on Tuesday 30 November 2010.

Fourth Homework due 11 November (via ICON dropbox)

This homework consists of three function definition exercises covering Chapter 19 (as well as concepts from previous chapters), and one drawing program covering Chapter 20. More information about the homework will be covered in class and during discussion sections. To do this homework, first download the zip file, which contains a directory (folder) named Homework4 (Homework4.zip). Then extract the Homework4 folder and you see it contains incomplete Python scripts; the student completes these scripts by writing function definitions, then archives the completed Homework4 again as Homework4.zip, and uploads this to the ICON dropbox. Please open and read the "Rules" file in the Homework4 directory. Make sure that the submitted work is Homework4.zip and contains your working solutions. You can use IDLE, the Wing IDE, or just an editor and a command shell to do the work, whichever is most convenient. When you edit one of the three function files, please just add new lines between the #------ lines in each file: there is the only place where you should modify things. The file shapes.py does not have test cases: you can write anything in that file, so long as you satisfy the specifications that are listed in that file.

Third Homework due 28 October (via ICON dropbox)

This homework consists of six function definition exercises covering Chapter 17 (as well as concepts from previous chapters). More information about the homework will be covered in class and during discussion sections. To do this homework, first download the zip file, which contains a directory (folder) named Homework3 (Homework3.zip). Then extract the Homework3 folder and you see it contains incomplete Python scripts; the student completes these scripts by writing function definitions, then archives the completed Homework3 again as Homework3.zip, and uploads this to the ICON dropbox. Please open and read the "Hints" file in the Homework3 directory. Make sure that the submitted work is Homework3.zip and contains your working solutions. You can use IDLE, the Wing IDE, or just an editor and a command shell to do the work, whichever is most convenient. It may help to review Chapter 9 on unit testing to understand how the checking and test cases work to help you know when the function definitions are correct. When you edit one of the files, please just add new lines between the #------ lines in each file: there is the only place where you should modify things.

Second Homework due 7 October (via ICON dropbox)

This homework consists of six function definition exercises covering Chapters 11 and 12 (as well as concepts from previous chapters). More information about the homework will be covered in class and during discussion sections. To do this homework, first download the zip file, which contains a directory (folder) named Homework2 (Homework2.zip). Then extract the Homework2 folder and you see it contains incomplete Python scripts; the student completes these scripts by writing function definitions, then archives the completed Homework2 again as Homework2.zip, and uploads this to the ICON dropbox. Please open and read the "Hints" file in the Homework2 directory. Make sure that the submitted work is Homework2.zip and contains your working solutions. You can use IDLE, the Wing IDE, or just an editor and a command shell to do the work, whichever is most convenient. It may help to review Chapter 9 on unit testing to understand how the checking and test cases work to help you know when the function definitions are correct. When you edit one of the files, please just add new lines between the #------ lines in each file: there is the only place where you should modify things.

Extra Homework due 23 September (via ICON dropbox)

This is an extra homework, designed to repair the grade distribution from the first exam; for students who did poorly on the first exam, the results of this homework will improve the exam scores (add points toward the exam category). For students who did well on the exam (better than average), this homework won't improve the score. The details of the homework will be discussed in class and during discussion sections. Briefly, the homework consists of downloading a zip file, which contains a directory (folder) named HomeworkExtra1 (HomeworkExtra1.zip) containing incomplete Python scripts; the student completes these scripts by writing function definitions, then archives the completed HomeworkExtra1 again as HomeworkExtra1.zip, and uploads this to the ICON dropbox.

First Homework due 9 September (via ICON dropbox)

The first homework is due by 9 September (at 11:59pm), to be submitted electronically using ICON, under the "dropbox" feature which allows uploading of files.

The homework is quite simple. Upload to the dropbox an archived directory (other names for the same thing are "zipped folder", "tar file", "compressed archive"). The directory name (folder name) should be Homework1 (no spaces between the "k" and "1"). The directory should have two files in it, one.py and two.py -- these files can contain anything -- we won't check that they have Python programs in them. The only purpose of the assignment is to make sure everyone knows how to submit an archived directory/folder. The discussion sections will go over how to prepare the submit the assignment.

There are two acceptable types of archived directory for this course, the "zip" format and the "tar.gz" format. Generally, there are many other possible formats, including "bz", "rar"; we prefer that assignments only use the "zip" and "tar.gz" formats.

Homeworks (last edited 2014-05-25 18:33:05 by localhost)