| |
Grading Policy for the Homeworks
Homework 1
General
![](../_themes/folio/afolbul1.gif) |
Spell errors/typos in
header page : -1 |
![](../_themes/folio/afolbul1.gif) |
Homework number in header page missing –1 |
Naming Conventions
![](../_themes/folio/afolbul1.gif) |
N1 : Obey recommended naming conventions: name a
variable keeping the ‘total charge’ as totalCharge
|
![](../_themes/folio/afolbul1.gif) |
N2: In naming identifirers, either use abbreviations in
all or use full forms in all: Not totalCharge and freqCounter ŕ
but totalCharge and frequencyCounter OR
totCharge and freqCounter |
![](../_themes/folio/afolbul1.gif) |
N3: Do not use identifier names that may get confused
with digits: I vs 1, O vs 0 etc. |
Indentation
![](../_themes/folio/afolbul1.gif) |
I1: Omit
the empty line |
![](../_themes/folio/afolbul1.gif) |
I2: Align the curly brackets of loop blocks
appropriately |
![](../_themes/folio/afolbul1.gif) |
I3: Program is not indented at all -10 |
![](../_themes/folio/afolbul1.gif) |
I4: Put empty lines to separate different logical
sections of the code |
![](../_themes/folio/afolbul1.gif) |
I5: Program’s indentation is not properly done
-5 |
![](../_themes/folio/afolbul1.gif) |
I6: Minor glitches about the indentation -2
|
Comments
![](../_themes/folio/afolbul1.gif) |
C1: Put comments explaining the purpose of the program
–5 |
Compilation and Execution
![](../_themes/folio/afolbul1.gif) |
T1: Compile error, program cannot compile or run!
-20 |
![](../_themes/folio/afolbul1.gif) |
T2: Program is not complete, cannot compile at all!
-40 |
Outputs
![](../_themes/folio/afolbul1.gif) |
O1: Program’s output is not what it is supposed to be
–10 |
![](../_themes/folio/afolbul1.gif) |
O2: Program’s output is not given –10 |
Loops
![](../_themes/folio/afolbul1.gif) |
L1: Use i, j,
k for loop index variables |
Header Files
![](../_themes/folio/afolbul1.gif) |
H1: Include stdio.h
-5 |
General programming style
![](../_themes/folio/afolbul1.gif) |
P1: Never use goto statements in structured languages
–10 |
![](../_themes/folio/afolbul1.gif) |
P2: Never declare different typed variables in the same
line –5 |
| | List of
letter grades was turned in to department on June 13th.
Your
unclaimed diskettes will be donated to department.
|