Homework 4 Rubric
Calculators (2x) (20 Points)
Code |
Points |
Description |
A1 |
10 |
Functionality |
A2 |
10 |
Style and Implementation |
A3 |
10 |
Functionality |
A4 |
10 |
Style and Implementation |
Test Cases
- Net amount:
274.5
- Total number of credits:
2
- Total number of debits:
5
- Sum of the credits:
550
- Sum of the debits:
-275.5
- Maximum credit:
500
- Maximum debit:
-200
- Average credit:
275
- Average debit:
-55.1
- Most common credit: Any (
500
, 50
)
- Most common debit:
-5
Listing (20 Points)
Code |
Points |
Description |
B1 |
10 |
Functionality |
B2 |
10 |
Style and Implementation |
Test Cases
- Sort entries by date:
asc
(5), desc
(5)
- Sort entries by amount:
asc
(5), desc
(5)
- Sort entries by category:
asc
(5), desc
(5)
- Filter entries by date: included date (5), missing date (5)
- Filter entries by amount: included amount (5), missing amount (5)
- Filter entries by category: included category (5), missing category (5)
Cleaning (20 Points)
Code |
Points |
Description |
C1 |
10 |
Functionality |
C2 |
10 |
Style and Implementation |
- Modify existing:
- prompts for 3 fields (2/2/2)
- updates all 3 fields (2)
- not duplicated, included in list (2)
- Remove duplicate:
- on list with no duplicates (5)
- add duplicate entry, run on list with duplicates (5)
- Remove invalid
- on list with no invalid (5)
- add
"", "", ""
, removed when run (5)
Other
Code |
Points |
Description |
D1 |
10 |
Functionality |
D2 |
10 |
Style and Implementation |
If choosen from above, uses same grading