- Program Correctness (75%): The programs do everything that the
lab requires. If you have a question about how a program handles
a certain input, check the executables that have been provided.
Subtract 30 points from the rptoparen program if the program does not use
a binary tree to represent the expressions and subtract all 25 points from
the bc_scoreproc program if the program does not use a binary tree to
store the people's names.
- rptoparen (40 points)
- The program successfully prints an expression with a single
literal (3 points)
- The program successfully prints an expression with a single
variable (3 points)
- The program correctly parenthesizes and prints an expression with
a single operator (10 points)
- The program correctly parenthesizes and prints a complex expression
with multiple operators (15 points)
- The program correctly handles more than one expression on a line
(5 points)
- Error detection--invalid expressions are correctly identified
(4 points)
- bc_scoreproc (35 points)
- The program correctly indicates whether or not a person is in the
score files (10 points)
- The program correctly prints the information associated with a
particular person (8 points)
- The program correctly finds the minimum and maximum average scores
(5 points)
- The program prints the people associated with the minimum and
maximum average scores in alphabetical order (8 points)
- The program correctly calculates the unique number of names in
the score files (4 points)
- Error checking--don't worry about it--you should have done it in
lab 8 so you won't have points deducted a second time if you didn't
do it.
- Commenting (15%): See the commenting
information
on the course's web page for advice on how to comment your programs,
- Program Style (10%): Are the programs well-organized and do they
solve the problem in the most straightforward, efficient way possible.