} Okay, I'm going to award that 7 out of the possible 10 points.
} You disagree? You want to know why? Fair enough, here's why:
}
} 1) Only one comment in the whole program. You know better than that.
} I'm only deducting ONE point, however, because your use of descriptive
} variable and function names is actually pretty good. (Although the
} convention is to use uppercase names for defined constants like
} WILLING.) -1 point.
}
} 2) It is also convention to have a program that terminates successfully
} return zero. While 7 is the number of perfection (as you should
} recall from Celestial Programming 131), it is still preferable to
} return zero in this context. -1 point.
}
} 3) An all-too-common error, even in an intermediate programming
} course such as this one, is the stunning lack of input statements.
} Your program is adept at emitting grovels, gifts, questions, and even
} return codes, but doesn't include a single ponder(), hear_answer(),
} or even getc()! This is nothing more than a glorified "hello world!"
} program. Frankly I expected better. It's pointless to access the
} Oracle, present a query, and exit before receiving the answer.
} It clutters the queue and puts the Oracle in a bad mood. -1 point.
} (I should make it -2, but having seen the response Oracle made to your
} question, I'm in a good mood myself. My wife is still giggling over it.
} Too bad you'll never see it.)
}
} So, as I say, 7 out of 10 points. Cheer up, though - it's still better
} than the average score on this project.
}
} You owe the Oracle the same query written in SQL. And let's try for
} 10 out of 10 this time, shall we? See you next week.
|