CS 99

Fundamental Programming Concepts
Summer 2000

Lab 6 Grading

Part Points
SquareRoot 20
  • Correctness (10 points)
    • 5 points for correct approximations and labels in output
    • 1 point for error calculation and comparison with Math.sqrt()
    • 4 points for data validation:
      • number >= 0
      • tolerance > 0
  • Style (10 points) 
 
PrimeFactorization 15
  • Correctness (15 points)
    • 8 points for correct factorization
    • 4 points for data validation:
      • n >= 2
      • Yes/No
    • 3 points for ability to repeat program execution
  • Extra credit
    • +2 for "n is prime"
    • +3 for factorization on one line and omitting exponents where unnecessary
 
Total 35

General Comments: