User Tools

Site Tools


haas:fall2020:discrete:projects:pnc2

Differences

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

Link to this comparison view

Next revision
Previous revision
haas:fall2020:discrete:projects:pnc2 [2018/10/01 10:14] – external edit 127.0.0.1haas:fall2020:discrete:projects:pnc2 [2020/11/02 10:41] (current) – [Evaluation Criteria] wedge
Line 166: Line 166:
   * perform the correct algorithm and optimization(s) against the command-line input(s) given.   * perform the correct algorithm and optimization(s) against the command-line input(s) given.
     * utilize meaningful variable names (I do not want to see things like **a**, **i**, **n**, **x** being used which have no meaningful bearing on the role they serve).     * utilize meaningful variable names (I do not want to see things like **a**, **i**, **n**, **x** being used which have no meaningful bearing on the role they serve).
-  * display identified primes (space-separated) to a file pointer called **primelist** +  * display identified primes (space-separated) to a file pointer called **stdout** 
-  * stop your stopwatch immediately following your prime processing loops (and terminating newline display to **primelist**). Calculate the time that has transpired (ending time minus starting time). +  * stop your stopwatch immediately following your prime processing loops (and terminating newline display to **stdout**). Calculate the time that has transpired (ending time minus starting time). 
-  * output the processing run-time to the file pointer called **timing**+  * output the processing run-time to the file pointer called **stderr**
   * your output **MUST** conform to the example output in the **execution** section below. This is also a test to see how well you can implement to specifications. Basically:   * your output **MUST** conform to the example output in the **execution** section below. This is also a test to see how well you can implement to specifications. Basically:
     * as primes are being displayed, they are space-separated (first prime hugs the left margin), and when all said and done, a newline is issued.     * as primes are being displayed, they are space-separated (first prime hugs the left margin), and when all said and done, a newline is issued.
Line 564: Line 564:
  
 ====Displaying the runtime==== ====Displaying the runtime====
-Once we have the starting and ending times, we can display this to the **timing** file pointer. You'll want this line:+Once we have the starting and ending times, we can display this to the **stderr** file pointer. You'll want this line:
  
 <code c> <code c>
-fprintf(timing, "%8.4lf\n",+fprintf(stderr, "%8.4lf\n",
 time_end.tv_sec-time_start.tv_sec+((time_end.tv_usec-time_start.tv_usec)/1000000.0)); time_end.tv_sec-time_start.tv_sec+((time_end.tv_usec-time_start.tv_usec)/1000000.0));
 </code> </code>
Line 748: Line 748:
  
 <code> <code>
-78:pnc2:final tally of results (78/0)+78:pnc2:final tally of results (78/78)
 </code> </code>
  
Line 754: Line 754:
  
 <code> <code>
-*:pnc2:primeALGO.c compiles cleanly, no compiler messages [1/0+*:pnc2:primeALGO.c compiles cleanly, no compiler messages [1/1
-*:pnc2:primeALGO.c implements only specified algorithm [2/0+*:pnc2:primeALGO.c implements only specified algorithm [2/2
-*:pnc2:primeALGO.c consistent indentation throughout code [1/0+*:pnc2:primeALGO.c consistent indentation throughout code [1/1
-*:pnc2:primeALGO.c relevant comments throughout code [1/0+*:pnc2:primeALGO.c relevant comments throughout code [1/1
-*:pnc2:primeALGO.c code conforms to project specifications [2/0+*:pnc2:primeALGO.c code conforms to project specifications [2/2
-*:pnc2:primeALGO.c runtime output conforms to specifications [1/0+*:pnc2:primeALGO.c runtime output conforms to specifications [2/2
-*:pnc2:primeALGO.c make checkqty test times within reason [1/0+*:pnc2:primeALGO.c make checkqty test times within reason [2/2
-*:pnc2:primeALGO.c make checkrange test times within reason [1/0] +*:pnc2:primeALGO.c make checkrange test times within reason [2/2]
-*:pnc2:primeALGO.c make verifyall tests succeed [3/0]+
 </code> </code>
  
haas/fall2020/discrete/projects/pnc2.1538403260.txt.gz · Last modified: 2018/10/01 10:14 by 127.0.0.1