User Tools

Site Tools


labpage

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
labpage [2020/12/20 02:36] aboelazelabpage [2020/12/21 02:23] (current) aboelaze
Line 173: Line 173:
 ---- ----
  
-===Lab Test 2 ===+===== LAB TEST 2 ===== 
 + 
  
 Here it is {{:lab_test_2.pdf|Lab Test 2}} Note you submit to three different directories as stated    **//Submit all files as .c//** Here it is {{:lab_test_2.pdf|Lab Test 2}} Note you submit to three different directories as stated    **//Submit all files as .c//**
Line 189: Line 191:
 ---- ----
  
-== Lab 8 ==+===== LAB 8 ===== 
 + 
 + 
  
  
 Lab 8 is here {{:lab_8.pdf|Lab 8}}  {{:write.c|write.c}} Lab 8 is here {{:lab_8.pdf|Lab 8}}  {{:write.c|write.c}}
  
-**//T name format is fname <space> lname//**  here is one example of the dat.txt file {{:dat_1.txt|here}}+**//T name format is fname <space> lname//**  here is one example of the dat.txt file 
  
 For example, you do For example, you do
Line 208: Line 213:
  
 **Solution**  {{:read.c|lab8.c}} **Solution**  {{:read.c|lab8.c}}
 +
 +Here is the data file [[http://www.eecs.yorku.ca/~aboelaze/dat.txt|dat.txt]]
 +
 +**IMPORTANT**
 +
 +before contacting test your code.  How
 +
 +It is a little bit problematic for me to upload a binary file here, so compile and run this program {{:makeinput.c|makeinput.c}} using this input file {{:input.txt|input.txt}}
 +
 +This means, compile the C file and run it as
 +
 +a.out < input.txt
 +
 +That generates the dat.txt file that you will read it in your lab.
 +
 +Then run the code you submitted 9after compiling it of course as such
 +
 +
 +
 +
 +     a.out -count
 +     
 +     a.out -grade A
 +     
 +     a.out -grade C
 +     
 +     a.out -name John
 +     
 +     a.out -name Leslie
 +     
 +The output should be   
 +
 +**case 1**
 +
 +4
 +
 +**case2**
 +
 +St. ID  Name
 +
 +1234    John Doe
 +
 +4567    Leslie Rider
 +
 +**case 3**
 +
 +
 +St. ID  Name
 +
 +3456    John Jack
 +
 +**case 4**
 +
 +1234    John Doe        A
 +
 +3456    John Jack       C
 +
 +**case 5**
 +
 +4567    Leslie Rider    A
 +
 +
 +
 +
 +
  
 ---- ----
 ---- ----
 ---- ----
-== Lab 9 ==+ 
 +===== LAB 9 ===== 
 + 
  
 Lab 9 is  {{:lab_9.pdf|here}} The lab is due Friday Nov 20 Lab 9 is  {{:lab_9.pdf|here}} The lab is due Friday Nov 20
Line 223: Line 296:
  
  
- == Lab 10 ==+ 
 +===== LAB 10 ===== 
 + 
  
 Here are some documentation about the OM4000 board Here are some documentation about the OM4000 board
Line 240: Line 316:
 ---- ----
 ---- ----
 +
  
 == Lab 11 == == Lab 11 ==
 +
  
 {{:lab_11.pdf|Lab 11}} Lab 11 is due Dec 8 midnight {{:lab_11.pdf|Lab 11}} Lab 11 is due Dec 8 midnight
labpage.1608431796.txt.gz · Last modified: 2020/12/20 02:36 by aboelaze

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki