This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:fall2019:c4eng:projects:cnv0 [2019/10/07 13:16] – [Additional outputs] wedge | haas:fall2019:c4eng:projects:cnv0 [2019/10/07 18:14] (current) – [Specifications] wedge | ||
---|---|---|---|
Line 50: | Line 50: | ||
The number 14: | The number 14: | ||
- | * 14 % 2 == 0 // | + | * 14 % 2 == 0 |
* 14 % 3 == 2 | * 14 % 3 == 2 | ||
* 14 % 4 == 2 | * 14 % 4 == 2 | ||
* 14 % 5 == 4 | * 14 % 5 == 4 | ||
* 14 % 6 == 2 | * 14 % 6 == 2 | ||
- | * 14 % 7 == 0 // | + | * 14 % 7 == 0 |
* 14 % 8 == 6 | * 14 % 8 == 6 | ||
* 14 % 9 == 5 | * 14 % 9 == 5 | ||
Line 97: | Line 97: | ||
* all code within the same scope aligned to its indentation level | * all code within the same scope aligned to its indentation level | ||
* have proximal comments explaining your rationale and what is going on, throughout your code | * have proximal comments explaining your rationale and what is going on, throughout your code | ||
- | * to STDERR, prompt for the number (range appropriate of a signed | + | * to STDERR, prompt for the number (range appropriate of an unsigned |
* properly store this in a variable of type **unsigned long int** | * properly store this in a variable of type **unsigned long int** | ||
* immediately after the input, check to make sure the input number is a positive number greater than or equal to 2; if in violation, display an error (to STDERR) and exit with a non-zero value. | * immediately after the input, check to make sure the input number is a positive number greater than or equal to 2; if in violation, display an error (to STDERR) and exit with a non-zero value. | ||
Line 186: | Line 186: | ||
To successfully complete this project, the following criteria must be met: | To successfully complete this project, the following criteria must be met: | ||
- | * Code must compile cleanly (no warnings | + | * Code must compile cleanly (no notes, |
* Output must be correct, and match the form given in the sample output above. | * Output must be correct, and match the form given in the sample output above. | ||
* Code must be nicely and consistently indented | * Code must be nicely and consistently indented |