CECS 100
LAB ASSIGNMENT 8
Assigned date: 10/23
Due date: Monday 11/4
30 points
Do problem 3 in chapter 7 on page 402.
Output sample
Month Rainfall(mm) Classification
------- --------------- --------------
1 95 Dry
2 100 Dry
3 120 Average
4 130 Average
5 135 Average
6 145 Average
7 155 Average
8 185 Rainy
9 190 Rainy
10 160 Average
11 130 Average
12 120 Average
The year's average monthly rainfall was 139 mm.
September has the highest rainfall (190 mm).
January has the lowes rainfall (95 mm)
Grading
Criteria | Approx. % of Grade | Excellent (100%) | Adequate (80%) | Poor (60%) | Not Met (0%) |
---|---|---|---|---|---|
Program Specification /Correctioness | 50%(10 points) | No errors, program always works correctly and meets the specification(s). | Minor details of the program specification are violated, program functions incorrectly for some inputs. | Significant details of the specification are violated, program often exhibits incorrect behavior. | Program only functions correctly in very limited cases or not at all. |
Readability | 20% (4 points) | No errors, code is clean, understandable, and well-organized. | Minor issues with consistent indentation, use of whitespace, variable naming, or general organization. | At least one major issue with indentation, whitespace, variable names, or organization. | Major problems with at three or four of the readability subcategories. |
Documentation | 10% (2 points) | No errors, code is well-commented. | One or two places that could benefit from comments are missing them or the code is overly commented. | File header missing, complicated lines or sections of code uncommented or lacking meaningful comments. | No file header or comments present. |
Code Efficiency | 15% (3 points) | No errors, code uses the best approach in every case. | No errors, code uses the working approach in every case. | Code uses poorly-chosen approaches in at least one place. | Many things in the code could have been accomplished in an easier, faster, or otherwise better fashion. |
Assignment Specifications | 5% (1 point) | No errors | N/A | Minor details of the assignment specification are violated, such as files named incorrectly or extra instructions slightly misunderstood. | Significant details of the specification are violated, such as extra instructions ignored or entirely misunderstood. |