==== LABS ==== This course has weekly labs. * Labs are submitted electronically. * The due date is Wednesday midnight of every week (there is no submission for lab 1, you have to demo the lab to the TA during the lab time. * labs are marked electronically, 75% of the marks are calculated by comparing your code output to the model output. That means you have to be very careful. Follow the specifications carefully, an extra comma, new line, or a space might make the difference. ===Lab 1 === Here is {{:lab_1.pdf|Lab 1}} no submission, demo in the lab --------------------------- ===Lab 2 === **13,16 Sept.** Here is {{:lab_2.pdf|Lab 2}} Here is an example input file for part 1 {{:in1.txt|in1.txt}} and the corresponding output file {{:out1.txt|out1.txt}} For part 2, here is an example {{:out2.txt|output file}} --------------------------- ===Lab 3 === **20,23 Sept.** {{:lab_3.pdf|Lab 3}} **Note** a change in file name submission **Note**: the program displays the required results and quits. Also in point 5, g is the actual grade in the file not the letter g. Example of {{:lab3_2afile.txt|file1.txt}} and {{:lab3_2bfile.txt|file2.txt}} **Here are some example runs** **calvin 417 % lab3_2.sh lab3_2afile.txt lab3_2bfile.txt 123456** //Ok Chynoweth has no grade in coures EECS2032// //Ok Chynoweth has a grade of P in course EECS2021// **Another run** **calvin 419 % lab3_2.sh lab3_2afile.txt lab3_2bfile.txt 767676767676** //No such ID// calvin 420 % --------------------------- ===Lab test 1 === **27,30 Sept.** Here is {{:last_year_lab_test.pdf|Last year lab test}}, this only last year tes, not this year. You shouldn't study the material there, this is an example. --------------------------- ===lab 4=== **4, 7 Oct.** Here is {{:lab_4.pdf|Lab 4}} Consider a maximum array size of 20 --------------------------- ===lab 5=== Oct 11, 21 {{:lab_5.pdf|Lab 5}} consider a maximum size of 50 Here are some {{:practice_c.pdf|practice questions}} --------------------------- ===lab 6=== Oct 25, 28 Here is {{:lab_6.pdf|LAB 6}} --------------------------- ===lab 7=== Nov 1, 4 Here is {{:lab_6a.pdf|LAB 7}} here are some references you might need * {{:kl43_ref_man.pdf|Reference Manual}} * {{:frdm-kl43z_sch.pdf|KL-43Z Schematic Diagram}} * {{:frdmkl43zug.pdf|KL-43Z User Guide}} * {{:frdm-kl43z_qsg-1302866.pdf|KL-43Z Quick Start Guide}} --------------------------- ===Lab test 2=== Nov 8,11 here is {{:lab_test_1_a.pdf|lab test from a previous year}} --------------------------- ===lab 8=== Nov. 15, 18 ADC/DAC here is {{:lab_8.pdf|LAB 8}} --------------------------- ===lab 9=== Nov. 22, 25 {{:lab_9.pdf|lab 9}} Timers and interrupts Test yourself in C [[https://www.w3resource.com/c-programming-exercises/]] A lab few years ago about hashing {{:lab_6_2017.pdf|hashing}} Last year lab about {{:lab_9_20128.pdf|File I/O}} --------------------------- ===Lab test 3=== Nov 29, Dec 1 ---------------------------