CS 5 Black Homework 1, Fall 2023
Patterns and Functions
Due: 11pm on Monday, September 11
Submission: submit your solutions on Gradescope
Problems
- Problem 0: Reading [5 points; individual]
(hw1pr0.txt)
- Problem 1 (Lab 1A): Sequences and Data [20 points; individual or pair]
(hw1pr1.py)
- Problem 2 (Lab 1B): Function Fun! [25 points; individual or pair]
(hw1pr2.py)
- Problem 3: Function Frenzy! [50 points; individual or pair; up to +5 extra-credit points]
(hw1pr3.py)
- And, Recursion-free functions with PythonBat [50 points; individual or pair]
(hw2pr4.py) E.C. available, too
Submission
For each of these problems, you should be sure to name your file as indicated above. Then, you should submit the file to our online submission server, which is available at this link.Credit for Lab Work
If you submittedhw1pr1a.py
and hw1pr1b.py
during the lab period, you will receive full
credit for those two problems (even if you didn't finish). In this case, you will only need to submit the other problems.
If you did not participate in lab, you should finish those two, as well.
Working in Pairs
For this assignment, you may work on all of the Python with up to one other student. The reading you should complete on your own. Pair programming is completely optional—you may do all of the problems on your own, if you wish. For this first assignment there is no individual programming problem, but in future weeks there will be at least one. If you choose to work with a partner on all of the programming problems, please make sure that both partners completely understand what is going on. Here are the individual- and pair-work guidelines:- If you work individually, the work you submit should be your own. You are encouraged to seek help from CS 5's instructors and student graders/tutors. You may also discuss problems with fellow students, but those discussions must not involve one person doing the work for another. This link on the CS 5 assignment work policy goes into more detail.
- If you work as a pair, the above guidelines hold for the pair. In particular, the pair should
- work in the same physical location on the same "physical" file
- contribute equally to the work
- submit work that is their own, just as noted above for individuals
- you don't need to work on all of the pair problems in a pair