User Tools

Site Tools


haas:spring2021:cprog:projects:cbf0

Differences

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

Link to this comparison view

Next revision
Previous revision
haas:spring2021:cprog:projects:cbf0 [2020/09/29 15:02] – external edit 127.0.0.1haas:spring2021:cprog:projects:cbf0 [2021/03/22 14:53] (current) – [Submission] wedge
Line 63: Line 63:
   * a - open file for appending (add to end)   * a - open file for appending (add to end)
  
-If we wanted to open the file "**sample0.txt**" in the current directory for **reading**, using the file pointer **input**, we would do the following:+If we wanted to open the file "**sample0.txt**" in the **in/** sub-directory off our current working directory for **reading**, using the file pointer **input**, we would do the following:
  
 <code c> <code c>
-    input  = fopen ("sample0.txt", "r");+    input  = fopen ("in/sample0.txt", "r");
 </code> </code>
  
Line 108: Line 108:
  
 <cli> <cli>
-lab46:~/src/cprog/cbf0$ cat sample0.txt+lab46:~/src/SEMESTER/DESIG/cbf0$ cat in/sample0.txt
 >ABCDEFGHIJKLMNOPQRSTUVWXYZ< >ABCDEFGHIJKLMNOPQRSTUVWXYZ<
 [abcdefghijklmnopqrstuvwxyz] [abcdefghijklmnopqrstuvwxyz]
Line 117: Line 117:
 )!@#$%^&*( )!@#$%^&*(
 . .
-lab46:~/src/cprog/cbf0$ +lab46:~/src/SEMESTER/DESIG/cbf0$ 
 </cli> </cli>
  
Line 125: Line 125:
  
 <cli> <cli>
-lab46:~/src/cprog/cbf0$ xxd sample0.txt+lab46:~/src/SEMESTER/DESIG/cbf0$ xxd in/sample0.txt
 00000000: 3e41 4243 4445 4647 4849 4a4b 4c4d 4e4f  >ABCDEFGHIJKLMNO 00000000: 3e41 4243 4445 4647 4849 4a4b 4c4d 4e4f  >ABCDEFGHIJKLMNO
 00000010: 5051 5253 5455 5657 5859 5a3c 0a5b 6162  PQRSTUVWXYZ<.[ab 00000010: 5051 5253 5455 5657 5859 5a3c 0a5b 6162  PQRSTUVWXYZ<.[ab
Line 137: Line 137:
 00000090: 4546 3a48 4558 4144 4543 494d 414c 0a29  EF:HEXADECIMAL.) 00000090: 4546 3a48 4558 4144 4543 494d 414c 0a29  EF:HEXADECIMAL.)
 000000a0: 2140 2324 255e 262a 280a 2e0a            !@#$%^&*(... 000000a0: 2140 2324 255e 262a 280a 2e0a            !@#$%^&*(...
-lab46:~/src/cprog/cbf0$ +lab46:~/src/SEMESTER/DESIG/cbf0$ 
 </cli> </cli>
  
Line 183: Line 183:
  
 <cli> <cli>
-system:~/src/desig/cbf0$ ./cbf0 in/sample0.txt+system:~/src/SEMESTER/DESIG/cbf0$ ./cbf0.$(uname -m) in/sample0.txt
 00000000: 3e 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f  >ABCDEFGHIJKLMNO 00000000: 3e 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f  >ABCDEFGHIJKLMNO
 00000010: 50 51 52 53 54 55 56 57 58 59 5a 3c 0a 5b 61 62  PQRSTUVWXYZ<.[ab 00000010: 50 51 52 53 54 55 56 57 58 59 5a 3c 0a 5b 61 62  PQRSTUVWXYZ<.[ab
Line 200: Line 200:
  
 <cli> <cli>
-system:~/src/desig/cbf0$ ./cbf0 in/sample0.txt 4+system:~/src/SEMESTER/DESIG/cbf0$ ./cbf0.$(uname -m) in/sample0.txt 4
 00000000: 3e 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f  >ABCDEFGHIJKLMNO 00000000: 3e 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f  >ABCDEFGHIJKLMNO
 00000010: 50 51 52 53 54 55 56 57 58 59 5a 3c 0a 5b 61 62  PQRSTUVWXYZ<.[ab 00000010: 50 51 52 53 54 55 56 57 58 59 5a 3c 0a 5b 61 62  PQRSTUVWXYZ<.[ab
Line 216: Line 216:
 #include <sys/ioctl.h> #include <sys/ioctl.h>
  
-int main (void)+int main ()
 { {
     struct winsize terminal;     struct winsize terminal;
Line 404: Line 404:
   * Submit a copy of your source code to me using the **submit** tool.   * Submit a copy of your source code to me using the **submit** tool.
  
-To submit this program to me using the **submit** tool, run the following command at your lab46 prompt:+To submit this program to me using the **submit** target in the Makefile, run the following command at your lab46 prompt:
  
 <cli> <cli>
-$ submit cprog cbf0 cbf0.c +lab46:~/src/SEMESTER/DESIG/cbf0make submit 
-Submitting cprog project "cbf0": +...
-    -> cbf0.c(OK) +
- +
-SUCCESSFULLY SUBMITTED+
 </cli> </cli>
  
Line 421: Line 418:
  
 <code> <code>
-78:cbf0:final tally of results (78/78+65:cbf0:final tally of results (65/65
-*:cbf0:cbf0.c compiles cleanly, no compiler messages [13/13+*:cbf0:obtained via grabit by Sunday before deadline [5/5] 
-*:cbf0:cbf0.c pushed to repository [13/13+*:cbf0:program compiles successfully, no errors [5/5
-*:cbf0:cbf0.c code conforms to project specifications [26/26+*:cbf0:program compiles with no warnings [5/5] 
-*:cbf0:cbf0 runtime output conforms to specifications [26/26]+*:cbf0:program performs stated task/algorithm [5/5] 
 +*:cbf0:program output conforms to formatting expectations [5/5
 +*:cbf0:proper error checking and status reporting performed [5/5] 
 +*:cbf0:code implements solution using relevant concepts [5/5] 
 +*:cbf0:code updates committed/pushed to lab46 semester repo [5/5] 
 +*:cbf0:code uses correct variable types and name lengths [5/5] 
 +*:cbf0:project is submitted with relevant and complete source [5/5
 +*:cbf0:project is submitted on lab46 using 'make submit' [5/5] 
 +*:cbf0:project is submitted with pi and lab46 binaries [5/5] 
 +*:cbf0:runtime tests of submitted program succeed [5/5]
 </code> </code>
  
 Additionally: Additionally:
-  * Solutions not abiding by spirit of project will be subject to a 25% overall deduction +  * Solutions not abiding by **SPIRIT** of project will be subject to a 25% overall deduction 
-  * Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction +  * Solutions not utilizing descriptive why and how **COMMENTS** will be subject to a 25% overall deduction 
-  * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction +  * Solutions not utilizing **INDENTATION** to promote scope and clarity will be subject to a 25% overall deduction 
-  * Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction+  * Solutions lacking **ORGANIZATION** and are not easy to read (within 90 char width) are subject to a 25% overall deduction 
haas/spring2021/cprog/projects/cbf0.1601391736.txt.gz · Last modified: 2020/09/29 15:02 by 127.0.0.1