User Tools

Site Tools


haas:spring2017:cprog:projects:dow0

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:dow0 [2017/01/30 22:29] – [Submission] wedgehaas:spring2017:cprog:projects:dow0 [2017/01/31 20:14] (current) – [Submission] wedge
Line 122: Line 122:
  
 <cli> <cli>
-lab46:~/src/cprog/dayofweek$ ./dayofweek+lab46:~/src/cprog/dow0$ ./dow0
 Which year: 2014 Which year: 2014
 January 1st, 2014 falls on: Wednesday January 1st, 2014 falls on: Wednesday
-lab46:~/src/cprog/dayofweek+lab46:~/src/cprog/dow0
 </cli> </cli>
  
 The execution of the program is short and simple- obtain the input, do the processing, produce the output, and then terminate. The execution of the program is short and simple- obtain the input, do the processing, produce the output, and then terminate.
  
 +====Output Specifications====
 +Your program must output as follows:
 +
 +  * Input prompts, and everything else except the actual day of the week should be output to STDERR
 +  * The calculated day of the week needs to be displayed to STDOUT
 +  * The output MUST contain the "January 1st, YEAR" string
 +    * YEAR must be all 4 digits, exactly as input by the user
 +  * The calculated day of the week must be fully spelled out and correct, with the first letter capitalized, remaining letters lowercase.
 =====Reflection===== =====Reflection=====
 Be sure to provide any commentary on your journal regarding realizations had and discoveries made during your pursuit of this project. Be sure to provide any commentary on your journal regarding realizations had and discoveries made during your pursuit of this project.
  
-  * 2000 by definition isn't a leap year, but how does this algorithm work for 2000 in general? 
   * Try this algorithm on some years in the 20th century and see how it fares.   * Try this algorithm on some years in the 20th century and see how it fares.
     * Is it correct? Is it correct for any of them?     * Is it correct? Is it correct for any of them?
Line 145: Line 152:
   * Executed program must display a total of 2 lines, one for input, one for output.   * Executed program must display a total of 2 lines, one for input, one for output.
   * Input **must** be in the form of a complete (i.e. four-digit) year   * Input **must** be in the form of a complete (i.e. four-digit) year
 +    * input must be a number, NOT a string
   * 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)
Line 167: Line 175:
  
 <code> <code>
-13:dow0:final tally of results (13/13+52:dow0:final tally of results (52/52
-*:dow0:adequate indentation in dayofweek.c [3/3+*:dow0:data stored and calculated pursuant to algorithm and specifications [4/4
-*:dow0:sufficient comments in dayofweek.c [3/3+*:dow0:code is pushed to lab46 repository [4/4
-*:dow0:adequate modifications in dayofweek.c [1/1+*:dow0:adequate indentation and comments in dow0.c [4/4
-*:dow0:runtime tests of dayofweek.c [4/4+*:dow0:program uses indicated algorithm [12/12
-*:dow0:no compiler warnings for dayofweek.c [1/1+*:dow0:output conforms to project specifications [12/12] 
-*:dow0:no compiler errors for dayofweek.c [1/1]+*:dow0:runtime tests of dow0.c succeed [12/12
 +*:dow0:no negative compiler messages for dow0.c [4/4]
 </code> </code>
 +
haas/spring2017/cprog/projects/dow0.1485815382.txt.gz · Last modified: 2017/01/30 22:29 by wedge