User Tools

Site Tools


haas:spring2017:cprog:projects:sof0

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:spring2017:cprog:projects:sof0 [2017/01/24 16:06] – [Execution] wedgehaas:spring2017:cprog:projects:sof0 [2017/01/31 21:25] (current) – [Program] wedge
Line 15: Line 15:
 The allure of using (and learning) a programming language is to be able to effectively use it to solve problems, which in and of themselves are simulations of some process we can do in "the real world". The allure of using (and learning) a programming language is to be able to effectively use it to solve problems, which in and of themselves are simulations of some process we can do in "the real world".
  
-In this case, we will be writing a program which will implement the mental math techniques for computing the square of any two-digit number that ends with 5.+In this case, we will be writing a program which will implement the mental math techniques for computing the square of any one, two-, or three-digit number that ends with 5.
  
 =====Background===== =====Background=====
Line 118: Line 118:
     * display the resulting number to STDOUT (right-justified in a space supporting the largest possible value -- see output example below)     * display the resulting number to STDOUT (right-justified in a space supporting the largest possible value -- see output example below)
     * display any supporting text to STDERR (display of source values left-justified in a space supporting 3-digit values -- see output example below).     * display any supporting text to STDERR (display of source values left-justified in a space supporting 3-digit values -- see output example below).
 +  * because we have not officially learned how to do selection/have the computer react to conditions, please implement with the assumption that the user will ALWAYS input a correct value. Do not worry about having to check for invalid or illegal input values (I will not be checking for such when I evaluate your project).
 =====Execution===== =====Execution=====
  
haas/spring2017/cprog/projects/sof0.1485273980.txt.gz · Last modified: 2017/01/24 16:06 by wedge