University of Arizona, Department of Computer Science

CSc 120 (Spring 2025): Assignment 4

Start Date: Mon Feb 10
Due Date: Short problems: 7:00 PM, Thu Feb 13
No OCA this week:
Long problem: 7:00 PM, Tue Feb 18

This assignment works with objects and classes.

General Requirements

  1. You do not need to comment the short problems.
  2. For the long problems, your code should follow the style guidelines for the class. The long problem specification details the commenting requirements for methods.
  3. You may not use concepts not yet covered in class. These concepts include recursion, exceptions, type annotations, lambda expressions, and importing libraries (unless a library is explicitly mentioned in the specification.)

Short Problems (Due 7pm Thu Feb 13)

(20 points)

These problems have to be solved and submitted at http://practice.cs.arizona.edu.

The process for turning in your solutions is as in previous assignments. There are three problems, described below, which are grouped under the assignment name "Assg 04".

The short problems for this assignment are the following:

  1. colors

  2. temps

  3. canonicalize_date

Long Problem (Due 7pm Tue Feb 18)

(80 points)

  1. Dates
    File: dates.py.

For this problem, submit the file dates.py at https://www.gradescope.com/