Buffer Day 1 - Individual Practice Problems

Complete the following problems during the first 30 minutes of class. Submit your answers in text format to the B01 Problem assignment on Canvas. The assignment will close 30 minutes into class, so be sure to submit what you have before then even if it’s not complete.

You’re welcome to use Thonny and any resources linked from the course webpage, but be careful of spending too much time searching up resources and running out of time.

Problem

For this problem, you’ll write a short program. Skeleton code with detailed instructions and pseudocode is provided in B01.py. Download that file (you may need to right click the link and select “Save As”, or similar), open it in Thonny, and follow the instructions to complete the program. Test your program as you go and submit. When submitting your code, copy/paste both your code and a transcript of any testing you’ve done in Thonny.

Peer Review

After your problems have been submitted, you’ll get together with your group and grade each others’ work.

  1. Each team member should paste their solution into one of the pre-made code blocks on the slide (they currently contain just the skeleton code). Your group may agree to anonymize the solutions if you’d like - just be sure to exclude your name from the code you’re pasting in. In the interest of space, leave out the large block of comments at the top and start with the comment for Task 1.

  2. As a group go through each Problem 3 submission and grade it on the rubric provided in the code file. For each task (1–5), award one point for printing the correct content and one point for getting the exact formatting of the output correct.

To do this, you’ll need to paste the code into Thonny and test it. Be sure to test multiple cases: different orderings of the largest number and different numbers of others divisible.

Write the total score for each program in the provided box above the code. Annotate the code with text boxes indicating any deductions.