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

Next revision
Previous revision
haas:spring2017:cprog:projects:dow0 [2015/09/13 15:12] – external edit 127.0.0.1haas: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 opus 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)
   * Code must be commented   * Code must be commented
-    * have a properly filled-out comment banner at the top 
-    * have at least 20% of your program consist of **<nowiki>//</nowiki>**-style descriptive comments 
   * Output Formatting (including spacing) of program must conform to the provided output (see above).   * Output Formatting (including spacing) of program must conform to the provided output (see above).
   * Track/version the source code in a repository   * Track/version the source code in a repository
Line 157: Line 163:
  
 <cli> <cli>
-$ submit cprog dow0 dayofweek.c+$ submit cprog dow0 dow0.c
 Submitting cprog project "dow0": Submitting cprog project "dow0":
-    -> dayofweek.c(OK)+    -> dow0.c(OK)
  
 SUCCESSFULLY SUBMITTED SUCCESSFULLY SUBMITTED
Line 165: Line 171:
  
 You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches. You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.
 +
 +What I'll be looking for:
 +
 +<code>
 +52:dow0:final tally of results (52/52)
 +*:dow0:data stored and calculated pursuant to algorithm and specifications [4/4]
 +*:dow0:code is pushed to lab46 repository [4/4]
 +*:dow0:adequate indentation and comments in dow0.c [4/4]
 +*:dow0:program uses indicated algorithm [12/12]
 +*:dow0:output conforms to project specifications [12/12]
 +*:dow0:runtime tests of dow0.c succeed [12/12]
 +*:dow0:no negative compiler messages for dow0.c [4/4]
 +</code>
  
haas/spring2017/cprog/projects/dow0.1442157171.txt.gz · Last modified: 2017/01/30 22:26 (external edit)