User Tools

Site Tools


haas:spring2017:cprog:projects:pnc2

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:pnc2 [2017/03/05 15:49] – [sieve of Eratosthenes (primesieveoferat)] wedgehaas:spring2017:cprog:projects:pnc2 [2017/03/08 13:52] (current) – [Grabit Integration] wedge
Line 112: Line 112:
 It is your task to write some optimized prime number calculating programs: It is your task to write some optimized prime number calculating programs:
  
 +  - **primeopt.c**: implementing an approach of your own
   - **primesieveoferat.c**: using the space-oriented sieve algorithm   - **primesieveoferat.c**: using the space-oriented sieve algorithm
   - **primesieveofsund.c**: another sieve   - **primesieveofsund.c**: another sieve
Line 136: Line 137:
 <cli> <cli>
 lab46:~/src/cprog$ grabit cprog pnc2 lab46:~/src/cprog$ grabit cprog pnc2
-make: Entering directory '/var/public/fall2016/cprog/pnc2' +make: Entering directory '/var/public/spring2017/cprog/pnc2' 
-‘/var/public/fall2016/cprog/pnc2/Makefile’ -> ‘/home/USERNAME/src/cprog/pnc2/Makefile’ +‘/var/public/spring2017/cprog/pnc2/Makefile’ -> ‘/home/USERNAME/src/cprog/pnc2/Makefile’ 
-‘/var/public/fall2016/cprog/pnc2/primesieveoferat.c’ -> ‘/home/USERNAME/src/cprog/pnc2/primesieveoferat.c’ +‘/var/public/spring2017/cprog/pnc2/primeopt.c’ -> ‘/home/USERNAME/src/cprog/pnc2/primeopt.c’ 
-‘/var/public/fall2016/cprog/pnc2/primesieveofsund.c’ -> ‘/home/USERNAME/src/cprog/pnc2/primesieveofsund.c’ +‘/var/public/spring2017/cprog/pnc2/primesieveoferat.c’ -> ‘/home/USERNAME/src/cprog/pnc2/primesieveoferat.c’ 
-make: Leaving directory '/var/public/fall2016/cprog/pnc2'+‘/var/public/spring2017/cprog/pnc2/primesieveofsund.c’ -> ‘/home/USERNAME/src/cprog/pnc2/primesieveofsund.c’ 
 +make: Leaving directory '/var/public/spring2017/cprog/pnc2'
 lab46:~/src/cprog$ cd pnc2 lab46:~/src/cprog$ cd pnc2
 lab46:~/src/cprog/pnc2$ ls lab46:~/src/cprog/pnc2$ ls
-Makefile  primesieveoferat.c  primesieveofsund.c+Makefile  primeopt.c  primesieveoferat.c  primesieveofsund.c
 lab46:~/src/cprog/pnc2$  lab46:~/src/cprog/pnc2$ 
 </cli> </cli>
Line 316: Line 318:
   * 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(s) presented above.+  * Code must utilize the specifications/algorithm(s) presented above. 
 +    * **primeopt.c**
     * **primesieveoferat.c**     * **primesieveoferat.c**
     * **primesieveofsund.c**     * **primesieveofsund.c**
Line 330: Line 333:
  
 <cli> <cli>
-$ submit cprog pnc2 primesieveoferat.c primesieveofsund+$ submit cprog pnc2 primeopt.c primesieveoferat.c primesieveofsund
 Submitting cprog project "pnc2": Submitting cprog project "pnc2":
 +    -> primeopt.c(OK)
     -> primesieveoferat.c(OK)     -> primesieveoferat.c(OK)
     -> primesieveofsund.c(OK)     -> primesieveofsund.c(OK)
Line 339: Line 343:
  
 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 will be looking for:
 +
 +<code>
 +52:pnc2:final tally of results (52/0)
 +*:pnc2:submit all programs with submit tool [1/0]
 +*:pnc2:primeopt.c no negative compiler messages [2/0]
 +*:pnc2:primeopt.c implements unique yet viable algorithm [4/0]
 +*:pnc2:primeopt.c adequate indentation and comments [3/0]
 +*:pnc2:primeopt.c output conforms to specifications [4/0]
 +*:pnc2:primeopt.c primerun runtime tests succeed [4/0]
 +*:pnc2:primesieveoferat.c no negative compiler messages [2/0]
 +*:pnc2:primesieveoferat.c implements only specified algorithm [4/0]
 +*:pnc2:primesieveoferat.c adequate indentation and comments [3/0]
 +*:pnc2:primesieveoferat.c output conforms to specifications [4/0]
 +*:pnc2:primesieveoferat.c primerun runtime tests succeed [4/0]
 +*:pnc2:primesieveofsund.c no negative compiler messages [2/0]
 +*:pnc2:primesieveofsund.c implements only specified algorithm [4/0]
 +*:pnc2:primesieveofsund.c adequate indentation and comments [3/0]
 +*:pnc2:primesieveofsund.c output conforms to specifications [4/0]
 +*:pnc2:primesieveofsund.c primerun runtime tests succeed [4/0]
 +</code>
haas/spring2017/cprog/projects/pnc2.1488728972.txt.gz · Last modified: 2017/03/05 15:49 by wedge