| CPSC 231 - Assignment 6 (Bonus) - Marking Key | ||
| Description | Marks | |
| Actual | Max | |
| Coding style | ||
| Appropriate use of white space | 1 | |
| Self-documenting variable, constant and function names. | 3 | |
| No global variables (global constants are OK) | 2 | |
| No magic numbers (using named constants instead) | 2 | |
| Deep nesting of if statements and loops is avoided (max 3 levels of nesting) | 2 | |
| Arithmetic expressions are simple and easy to read | 1 | |
| Boolean expressions are simple and easy to read | 1 | |
| Total | 12 | |
| Documentation | ||
| Header documentation includes name and tutorial section | 1 | |
| Header documentation contains description of program. | 2 | |
| In line documentation used for blocks of code. | 3 | |
| Total | 6 | |
| Code Design | ||
| All or almost all of the code is inside a class. (And choice of code outside of a class is reasonable.) | 3 | |
| Each class is coherent | 5 | |
| Code duplication is minimized. | 2 | |
| Total | 10 | |
| GUI design | ||
| Layout of widgets creates an easy to use interface. | 6 | |
| Data entry values are limited as much as possible to ensure the user enters valid values. | 3 | |
| User can get results of computations in an intuitive manner | 2 | |
| Results are displayed in easy to read format | 2 | |
| Default size of window allows easy reading of all data | 1 | |
| Window can be resized and moved and data is still clear (within reason) | 1 | |
| Total | 15 | |
| Functionality (only qualify for these marks if the program runs) | ||
| Results displayed are correct. | 5 | |
| Total | 5 | |
| Assignment Total | 48 | |