Project 2: Multi‑Week Weather Analyzer – Rubric

This rubric is used to evaluate Project 2: Multi‑Week Weather Analyzer.

Correctness (40 points)

Does the program produce correct multi‑week analysis results?

CriterionPointsDescription
Weekly averages10Correctly computes and reports the average for each week
Overall average10Correctly computes the total average across all 28 days
Hottest/coolest day finding10Identifies correct temperature AND week/day for hottest and coolest values
Classification counts10Correctly counts Hot/Mild/Cool days per week

Deductions

  • -5 points: incorrect nested loop logic
  • -3 points: minor miscalculations
  • -2 points: incorrect rounding or formatting

Code Quality (30 points)

Is the code clean, readable, and appropriately structured?

CriterionPointsDescription
Nested loop use10Uses nested loops to process weeks and days effectively
Variable naming10Meaningful, descriptive variable names
Function use10Includes at least two helpful functions with clear roles

Deductions

  • -5 points: avoiding functions when beneficial
  • -3 points: confusing variable names
  • -3 points: repeated logic that should be in a function

Output Format (20 points)

Is the final report complete, clear, and easy to read?

CriterionPointsDescription
Weekly summary8Shows averages and category counts for all weeks
Overall summary8Shows overall average + hottest and coolest days
Readability4Output uses spacing, labels, and formatting to improve readability

Expected Output Structure

=== Multi‑Week Weather Report ===

Week 1 Average: ...
Week 2 Average: ...
...
Overall Average: ...
Hottest Day: ...
Coolest Day: ...

Weekly Categories:
- Week 1: Hot X | Mild Y | Cool Z
...

Deductions

  • -4 points: missing sections
  • -2 points: unclear labels or inconsistent formatting

Documentation (10 points)

Does the code include meaningful comments?

CriterionPointsDescription
Header comment3Name, date, project description at top of file
Inline comments7Key logic and functions include helpful comments

Deductions

  • -3 points: missing header comment
  • -2 points: no inline comments
  • -1 point: comments are unclear or unhelpful

Bonus Opportunities (+5 max)

  • +2 points: additional statistics (median, weekly variance, trend detection)
  • +2 points: especially clean function organization
  • +1 point: elegant or creative presentation

Common Issues to Avoid

  1. Forgetting to track both week number and day name for extremes
  2. Flattening data incorrectly instead of using nested loops
  3. Missing function usage (everything in one long script)
  4. Incorrect classification boundaries
  5. Weak or missing documentation

Feedback Format

Provide feedback using this structure:

Correctness: XX/40
- Weekly averages: ...
- Overall average: ...
- Hottest/coolest: ...
- Classification: ...

Code Quality: XX/30
- ...

Output Format: XX/20
- ...

Documentation: XX/10
- ...

Total: XX/100

Strengths:
- ...

Areas for Improvement:
- ...