This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:spring2014:cprog:projects:multby11 [2014/01/27 14:59] – [Verify submission] wedge | haas:spring2014:cprog:projects:multby11 [2014/02/06 17:47] (current) – [Multiplying any single digit number by 11] wedge | ||
---|---|---|---|
Line 11: | Line 11: | ||
To implement a programmatic solution (ie simulation) of a real life process- the mental math trick of multiplying any one-, two-, or three-digit number by eleven. | To implement a programmatic solution (ie simulation) of a real life process- the mental math trick of multiplying any one-, two-, or three-digit number by eleven. | ||
- | =====Prerequisites===== | + | =====Prerequisites/ |
In addition to the new skills required on previous projects, to successfully accomplish/ | In addition to the new skills required on previous projects, to successfully accomplish/ | ||
Line 31: | Line 31: | ||
In the case of 1 x 11, we get: 11 | In the case of 1 x 11, we get: 11 | ||
+ | |||
For 2 x 11, we see: 22 | For 2 x 11, we see: 22 | ||
+ | |||
For 3 x 11, we have: 33 | For 3 x 11, we have: 33 | ||
Line 227: | Line 229: | ||
* 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 (you may use the **indent** tool) | * Code must be nicely and consistently indented (you may use the **indent** tool) | ||
+ | * Code must utilize the algorithm presented above | ||
* Code must be commented | * Code must be commented | ||
* have a properly filled-out comment banner at the top | * have a properly filled-out comment banner at the top |