Grading sequence for program 4
CPSC 380 - Fall 2007
Grading for program 4 will be done in approximately this sequence.
Once your program fails a test, I may not test it any further.
- newLine
- get statement
- print a string
- print a single variable or single numeric literal
- assignment: right hand side a single variable or numeric literal
- assignment: right hand side a more complex expression
- single operators: +-*/ with operands that are variables or numeric literals
- multiple + (ie expressions with several + operators)
- multiple *
- precedence
- associativity
- parentheses
- print an arbitrary expression (eg print 2+3)
- if then with simple condition (eg if 2 < 3 then ...)
- 6 relops (ie <, <=, >, >=, =, /=)
- if with complex condition (eg if 2 * ( 3 + 4 ) < ( 5 + 6 ) * 7 then ...)
- if then else
- while
- arbitrarily nested statements (eg an if nested in a while nested in an if
- torture test (note: this is a buzz phrase that means a test case that tests
as much as possible and that is as hard as possible to pass)