|
|
Max score |
Coding style
|
|
|
-
Appropriate use of white space (program code)
|
|
2
|
-
Self-documenting variable, constant and function names.
|
|
4
|
-
No magic numbers (using named constants instead)
|
|
2
|
Sub total
|
|
8
|
|
|
|
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
|
Sub total
|
|
6
|
|
|
|
Code Design
|
|
|
-
Code contains at least 3 functions.
|
|
2
|
-
Each function has a single well-defined task
|
|
3
|
-
Each function has at most 10 lines of code.
|
|
3
|
Sub total
|
|
8
|
|
|
|
Functionality (only qualify for these marks if the program runs)
|
-
Prompts for height in feet and inches
|
|
1
|
-
Prompts for weight in pounds
|
|
0.5
|
|
|
0.5
|
-
Prompts for workout heart rate
|
|
0.5
|
-
Prompts for workout time in minutes
|
|
0.5
|
-
Displays caloric expenditure (somehow based on input)
|
|
1
|
- Caloric expenditure displayed is correct.
|
|
1 |
-
Output is easy to read and values contain exactly one decimal
digit.
|
|
2
|
-
Correctly calculates calories expended during normal metabolism
|
|
3
|
-
Correctly calculates calories expended during exercise
|
|
3
|
-
Appropriate conversion between imperial and metric where needed
|
|
2
|
Sub total
|
|
15
|
|
|
|
OVERALL TOTAL
|
|
37
|