CSE 130 - Programming Assignment #5 FAQ

  1. Is the Fractional Credit for 2e) extra credit?

  2. No its not extra credit. Its part of the grade.

  3. How is the Fractional Credit for 2e) graded?

  4. Read the assignment. Its specified there.

  5. I'm getting Indentation errors, but my indentation looks fine?

  6. The python interpreter differentiates between spaces and TAB-s. So even though two lines may look like they are indented the same width, if one is done with spaces, and the other with TAB-s python will complain. Make sure to be consistent and only use one or the other. One way to get your code to consistently use spaces, is to open it in vim and run the command ":retab"

  7. Can I import other libraries than what already is there?

  8. No. You may only use the imporated libraries and the built-in functions .

  9. For 1a) can we assume the list is sorted?

  10. No.

  11. For 1a) can numbers be negative?

  12. Yes.

  13. For 1b) can lists be of different length?

  14. No. You can assume lists are of equal length.

  15. What if in 1b) we have repeating keys?

  16. Assign the value corresponding to the last occurance of the key.

  17. What if in 1b) we have repeating keys?

  18. Assign the value corresponding to the last occurance of the key.

  19. Can't open/load words/wrods.txt in 2a)

  20. Make sure that 1) the file words is in the same directory as the scripts 2) you are correctly calling load_words("words"). If you save it as words.txt, you would have to call load_words("words.txt").

  21. If I crack all passwords given in the assignment file, do I get full credit?

  22. Not necessarily. If you can crack all passwords, you will likely get at least 15 points, since you can probably crack all UNTRANSFORMED passwords. We will be testing your code against a much bigger set of passwords, with a time limit. As described in the assignment, your score will be proportional to how many passwords you crack, relative to the best student.

  23. How much time will our programs be given for 2e)?

  24. 5 min.

  25. In 2b) transform_capitalize can the word contain non-letters(e.g. numbers)? What should we do about those?

  26. Yes it can. You should leave them unchanged, since they obviously can't be capitalized. Notice that upper() won't change anything that is not a letter. Try typing "a3b".upper() in a python shell.