This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ubr
Figure out what happens when you convert a dictionary to a list.
The %operator (check your textbook) is a good way to print out floating- point numbers, for example,
with the format % . f
o d ' ' is 9 ; c r 9 )is ' ' and similarly for other letters.
r(a) 7 h(7
If you haven't yet read my Unit testing and TDD handout (linked to from the course home page), now
would be a good time to do so. Grading
The assignment will be graded on the basis of 100 points total. You and your partner will receive the same
grade. Grading will be based on:
Corre ctne s s . We will have our own unit t est s, which your functions must pass. This means that (1)
the above functions must take parameters and produce results ex act ly as specified, or our test will fail
and cost you points, and (2) your own unit tests should be good enough to catch any errors before we
Style . Use proper indentation (4 spaces) and proper spacing. Use good, self- explanatory variable and
function names. Don't repeat code if you can put it in a function and just call the function. Don't use
"magic numbers" (unexplained constants in your code); give them names. Try to avoid redundancy
(such as the beginner's i b t e = T u ).
f etr = re Due date
Decide which of you will submit the assignment (only one assignment per team, please!) and submit it by 6am
Friday Fe bruary 1. Zip (don't use . a ) your . yfiles and submit the zipped file to Canvas. No other
form of submission will be accepted. www.cis.upenn.edu/~ matuszek/cit590- 2013/Assig nments/04- cir cuits- and- spanning - tr ees.html 4/4...
View Full Document
This document was uploaded on 02/02/2014.
- Spring '09