This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:discrete:fall2021:projects:pnf0 [2021/09/01 13:18] – [Display] mpronti2 | notes:discrete:fall2021:projects:pnf0 [2021/09/05 12:05] (current) – [Submission] wedge | ||
---|---|---|---|
Line 81: | Line 81: | ||
* Lower bound: 2 | * Lower bound: 2 | ||
* Upper bound: < | * Upper bound: < | ||
+ | * If taking unoptimized route, upper bound can just be //n - 1//. | ||
Both of these bounds may be confusing, let me explain... | Both of these bounds may be confusing, let me explain... | ||
Line 93: | Line 94: | ||
* How can we test if a number divides cleanly by //n//? | * How can we test if a number divides cleanly by //n//? | ||
* Hint: remainder " | * Hint: remainder " | ||
- | * How can we square root in our code for the upper bound? | + | * How can we implement a square root in our code for the upper bound? |
* How do we deal with testing the numbers 0 and 1? | * How do we deal with testing the numbers 0 and 1? | ||
Line 107: | Line 108: | ||
https:// | https:// | ||
+ | |||
+ | http:// | ||
+ | |||
+ | =====Submission===== | ||
+ | To submit, provide your tic file using the **submit** tool on lab46. | ||
+ | |||
+ | I'll be looking for the following: | ||
+ | |||
+ | < | ||
+ | 65: | ||
+ | *:pnf0:no errors, program runs in TIC-80 [13/13] | ||
+ | *:pnf0:user can specify lower and upper bounds at runtime [13/13] | ||
+ | *: | ||
+ | *: | ||
+ | *: | ||
+ | </ | ||
+ | |||
+ | Additionally: | ||
+ | * Solutions not abiding by **SPIRIT** of project will be subject to a 25% overall deduction | ||
+ | * Solutions not utilizing descriptive why and how **COMMENTS** will be subject to a 25% overall deduction | ||
+ | * Solutions not utilizing **INDENTATION** to promote scope and clarity will be subject to a 25% overall deduction | ||
+ | * Solutions lacking **ORGANIZATION** and are not easy to read (within 90 char width) are subject to a 25% overall deduction |