User Tools

Site Tools


haas:spring2014:cprog:projects:squares

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2014:cprog:projects:squares [2014/02/06 17:20] – [Squaring a value] wedgehaas:spring2014:cprog:projects:squares [2014/02/06 17:23] (current) – [Submission] wedge
Line 33: Line 33:
   * 8 squared (8<nowiki>^</nowiki>2) is 8*8 or 64   * 8 squared (8<nowiki>^</nowiki>2) is 8*8 or 64
  
-While not outwardly a difficult procedure, the nature of multiplying multiple digit numbers in your head can quickly result in more steps (and more steps means more time, doing things the traditional way).+While not outwardly a difficult procedure, the nature of multiplying multiple digit numbers in your head can quickly result in more steps (and more steps means more time, if doing things the traditional way).
  
 Finding a shortcut through this process enables it to remain solidly within the realm of mental math, and makes for a good algorithm to practice implementing on the computer. Finding a shortcut through this process enables it to remain solidly within the realm of mental math, and makes for a good algorithm to practice implementing on the computer.
Line 117: Line 117:
   * 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 implement solution using the mental math technique described 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
haas/spring2014/cprog/projects/squares.1391707244.txt.gz · Last modified: 2014/02/06 17:20 by wedge