User Tools

Site Tools


haas:fall2020:cprog:projects:cnv1

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:fall2020:cprog:projects:cnv1 [2020/10/08 14:54] – [Program] wedgehaas:fall2020:cprog:projects:cnv1 [2020/10/15 12:49] (current) – [Determining factor pairs] wedge
Line 89: Line 89:
  
 Because there are 3 factor pairs, 12 would be considered an nary(3) value (or a tertiary number). Because there are 3 factor pairs, 12 would be considered an nary(3) value (or a tertiary number).
 +
 +====Command-line arguments====
 +{{page>haas:fall2020:common:projects:commandlineargs&noheader}}
  
 =====grabit===== =====grabit=====
Line 164: Line 167:
 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.
  
-=====Compiling===== 
-As we have been doing all along, use the following options to gcc when compiling: 
  
-<cli> 
-yourpi:~/src/cprog/cnv1$ gcc -Wall --std=gnu99 -o cnv1 cnv1.c 
-yourpi:~/src/cprog/cnv1$  
-</cli> 
  
 =====Reference===== =====Reference=====
-In the CPROG public directory, inside the **cnv0** subdirectory, will be a copy of my implementation (in executable form, by the name **ref_cnv0**), which abides by the project specifications. Please compare its output against that of your implementation.+In the CPROG public directory, inside the **cnv1/** subdirectory, will be a copy of my implementation (in executable form, by the name **ref_cnv1**), which abides by the project specifications. Please compare its output against that of your implementation. You can run "make check" to have it run your program through a few variations:
  
 <cli> <cli>
-lab46:~/src/cprog/cnv0/var/public/spring2020/cprog/cnv0/ref_cnv0 2 2 40 +yourpi:~/src/cprog/cnv1make check 
-4 6 8 9 10 14 15 21 22 25 26 27 33 34 35 38 39 +n-ary(1) from to 50: 3 5 7 11 13 17 19 23 29 31 37 41 43 47 
-lab46:~/src/cprog/cnv0$ +n-ary(2) from 2 to 50: 4 6 8 9 10 14 15 21 22 25 26 27 33 34 35 38 39 46 49 
 +n-ary(3) from 2 to 5012 16 18 20 28 32 44 45 50 
 +n-ary(4) from 2 to 50: 24 30 40 42 
 +n-ary(5) from 2 to 50: 36 48
 </cli> </cli>
- 
 =====Verification===== =====Verification=====
-In addition, I have also placed a **cnv0verify** script in that same subdirectory, which will test your program against a range of values, to determine overall correctness.+In addition, I have also placed a **cnv1verify** script in that same subdirectory, which will test your program against a range of values, to determine overall correctness. You can run it by doing a "make verify":
  
 <cli> <cli>
-lab46:~/src/cprog/cnv0/var/public/spring2020/cprog/cnv0/cnv0verify+yourpi:~/src/cprog/cnv1make verify
 ERROR CHECK ERROR CHECK
 ================= =================
Line 235: Line 234:
    need: >36 <    need: >36 <
  
-lab46:~/src/cprog/cnv0+yourpi:~/src/cprog/cnv1
 </cli> </cli>
  
Line 253: Line 252:
  
 <cli> <cli>
-$ submit cprog cnv0 cnv0.c +lab46:~/src/cprog/cnv1make submit
-Submitting cprog project "cnv0": +
-    -> cnv0.c(OK) +
- +
-SUCCESSFULLY SUBMITTED+
 </cli> </cli>
 +
 +And make sure you get no error messages.
  
 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.
Line 265: Line 262:
  
 <code> <code>
-78:cnv0:final tally of results (78/78+91:cnv1:final tally of results (91/91
-*:cnv0:proper error checking and status reporting performed [13/13] +*:cnv1:resources obtained via grabit by Sunday before deadline [13/13] 
-*:cnv0:correct variable types and name lengths used [13/13] +*:cnv1:proper error checking and status reporting performed [13/13] 
-*:cnv0:proper output formatting per specifications [13/13] +*:cnv1:correct variable types and name lengths used [13/13] 
-*:cnv0:runtime tests of submitted program succeed [13/13] +*:cnv1:proper output formatting per specifications [13/13] 
-*:cnv0:no negative compiler messages for program [13/13] +*:cnv1:runtime tests of submitted program succeed [13/13] 
-*:cnv0:code is pushed to lab46 repository [13/13]+*:cnv1:no negative compiler messages for program [13/13] 
 +*:cnv1:code is pushed to lab46 repository [13/13]
 </code> </code>
  
haas/fall2020/cprog/projects/cnv1.1602168886.txt.gz · Last modified: 2020/10/08 14:54 by wedge