15-112: Fundamentals of Programming (2024)

Important Notes:

  1. Style Grading! We may grade your code for style. Be sure to review CS Academy section 2.3.1 for style guidelines. The checklist in 2.3.1 will be particularly useful as you complete your homework.
  2. Do not use recursion or any material not yet covered in weeks 1-7.

Each problem listed below is required. The point values they are worth are shown here in parentheses like this: (2).

Total points: 20pts

  • Required Task 1: Install cmu_graphics (worth 1 star)
    1. Do not attempt this step until you have installed both Visual Studio Code (VS Code) and Python 3.11 using the process outlined in HW4!
    2. Download this python file (install-cmu-graphics.py) and and run it with Python 3.11 (or 3.10, but very preferably 3.11) in VS Code in order to install cmu_112_graphics. You should see the message "Success: cmu-graphics is installed" (potentially below some other information) in your terminal if everything worked correctly. If you do not see this message, take a screenshot of what you do see and post it to Piazza, with as much of VS Code and the error message captured as possible, and skip the next step until you have it working.
    3. Next, Download and modify this file (helloCMUGraphics.py) to include your name and andrewID, then run the file using cmd-b or ctrl-b. If cmu_graphics is correctly installed, you should see a canvas appear. Capture a screenshot similar to the one below, which shows both VS Code (including your code, the output of the terminal, and Python 3.11 or 3.10 visible in the bottom-right) and the canvas.
    4. Use this form (different than the one you completed for hw4) to upload your screenshot that shows you have successfull installed cmu_graphics and modified and run helloCMUGraphics.py as described above. You will only receive credit if your screenshot demonstrates that cmu_graphics is installed on Python 3.11 or 3.10, and that you have modified and run helloCMUGraphics with 3.11 or 3.10 using cmd-b or ctrl-b after following the hw4 install instructions (so your terminal output should look very similar to that in the screenshot).
    5. 15-112: Fundamentals of Programming (1)

  • All exercises below should still be completed in CS Academy! You cannot paste code into these exercises, so do not attempt to write them in VS Code or you will have to waste time manually re-typing them, and without version history it will be harder for us to verify that your work is your own.
  • Unit 4: Lists
    • 4.4.13 Guided Exercises
      • removeRowAndCol (mutating and nonmutating) (1)
    • 4.4.16 Code Tracing Exercises
      • Code Tracing #4 (1)
    • 4.4.17 Additional Practice Exercises
      • isRectangular (1)
      • insertRowAndCol (mutating and nonmutating) (2)
  • Unit 5: Animations with Lists
    • 5.2.4 Guided Exercises
      • Moving Dot (1)
    • 5.2.5 Section Exercises
      • Reshape the Polygon (1)
    • 5.3.6 Tetris Case Study: 7/7 ⭐ required
      • (Note: We will share some hints in lecture, but we recommend starting early!)
      • Step 1 - Creating and Drawing the Board (1)
      • Step 2 - Creating and Drawing the Piece (1)
      • Step 3 - Moving the Piece (1)
      • Step 4 - Writing rotate2dListClockwise (1)
      • Step 5 - Rotating the Piece (1)
      • Step 6 - Stepping and Placing the Piece (1)
      • Step 7 - Removing Full Rows (1)
    • 5.3.7 Honors Creative Task (Tetris) (5)
      • Note: CS Academy lists every creative task as 30 stars, but this is worth 5 required stars, plus up to 3 bonus stars if you implement extra features. (However, note that in order to receive any bonus stars, you must have completed all other required problems in this assignment.) Also, this step is not autograded, and will instead be manually graded sometime after Fall Break.
    Additional Notes:
    1. Each CS Academy assignment will show required "stars" in exercise sections, listed like this:
      "Section Exercises: ⭐ 0 / 0."
      Ignore these numbers. For this class they have no meaning. You must complete the problems described below.
      Though, we are starting to try to update the stars to better match this homework document.
    2. Do not hardcode to the test cases in your solutions.
    3. Do not use recursion or any material not yet covered in weeks 1-5.

From the syllabus: Homework assignments will be primarily completed on the CMU CS Academy website with few exceptions. These assignments will include code tracing exercises and free response exercises requiring writing code, which are all generally autograded. The homework allows you to get practice on solving problems in an untimed environment with unlimited tries to automatically check solutions in CS Academy. The lowest two homework grades will be half-weighted.

Homeworks are entirely solo unless the assignment very explicitly allows you to collaborate. See the "Academic Integrity" section below for more details. That said, you always have access to extensive help provided by the TAs and course faculty. To get help on the homework assignments, you can go to daily office hours and/or post questions to Piazza.

A green checkmark next to a problem means it has autograded correctly and you are done. No green checkmark means it's not done yet. If you believe you should have received a green checkmark, be sure to review your work, and be sure that you hit the "check" button after the "run" button to submit it. The "check" button runs your code against additional hidden test cases which you must pass in order to receive credit. It's your responsibility to properly submit and be aware of whether you have received green-checkmark credit for your work! There is generally no partial credit for autograded problems.

15-112: Fundamentals of Programming (2024)

References

Top Articles
Latest Posts
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 6030

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.