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:
The term data validation refers to using a loop to input a data
value until it meets certain criteria. It is incorrect to abort the program
on invalid input.