CS 5 Gold Homework 1, Spring 2024
Patterns and Functions
Due: Tuesday, January 30 at 22:22:22 (22 seconds after 10:22 pm).
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?.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, be sure that both partners are equal creators of the result. 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 ("grutors"). 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 together, both same time and location (or Zoom).
- Contribute equally to the work.
- Submit work that is their own, just as noted above for individuals.
- You can pair up differently on different problems, and you can choose to work individually on some pair problems.