**Lab 1 Due Monday Oct 15** Here is {{:lab:lab_1.pdf|Lab 1}} do man grep for help on grep This lab is due end of day Monday ---- ---- ---- **Lab 2** Here is{{:lab:lab_2.pdf|Lab 2}} do man grep for help on grep This lab is due end of day Monday ---- ---- ---- **Lab 3** Here is {{:lab:lab_3.pdf|lab 3}} As usual, due to end of day Monday ---- ---- ---- **Lab 4** Her is {{:lab:lab_4.pdf|Lab 4}} For problem 1, here is an example of an input file {{:lab:phones.txt|in1}} and an output file {{:lab:outphone.txt|out1}} For problem 3, here is an example of an input file {{:lab:in.txt|in.txt}} and output file {{:lab:out.txt|out.txt}} The formula for monthly payments is P=principle * (rate *(1+rate)^n ) /( (1+rate)^n -1) where rate is the monthly rate = annual_rate/12 ---- ---- ---- **Lab 5 Due Monday Oct 15** {{:lab:lab_5.pdf|Lab 5}} **Hints** - Your program should not prompt the user. - The user should enter the length of the list (n) then hit return. Then enters the n numbers - When you display error message or the answer, your program should exit - Check what is the return value of scanf. For more of a hint, scanf returns EOF when there is no data to read ---- ---- ---- **Lab 6 Due Wed. Oct 31, 2018** {{:lab:lab_6.pdf|Lab 6}} **Corrections** * Submit to as submit 2031 lab_6 a1.c (and a2.c for part 2) * Rotation is to the right (for part 1) for part 1, I will put the values here instead of a file 5 1 4 7 23 17 23 4 5 6 77 Shift of 4 (r=to the right), added information not displayed distance = 65 3 1 5 6 2 4 8 shift of 0 (distance = 4) 6 7 4 5 6 2 8 6 5 1 4 2 3 shift of 0 **For part 2** The input file is {{:lab:inl62.txt|}} the output is -1,2 (difference = 40) ---- ---- ---- ** Lab 7 ** Due Monday Nov 5 lab sections Nov. 2,5 Her is {{:lab:lab_7.pdf|Lab 7}} A sample {{:lab:in71.txt|input file}} and the corresponding {{:lab:out71.txt|ouput file}} ---- ---- ---- ** Lab 8 ** Lab sections Nov. 9,12 here {{:lab:lab_8.pdf|Lab 8}} ** In the pdf file, the input in the example is given as 2,2. make that 2 2 it is easier to scanf ** ---- ---- ---- **Lab test 2 ** Nov. 16,19 (C only) ---- ---- ---- **Lab 9 ** Nov. 23,26 Here is {{:lab:lab_9.pdf|Lab 9}} I will be posting sample files for input and output shortly The original {{:lab:name.txt|name file}} The uncompressed binary file {{:lab:test.txt|file}} The compressed {{:lab:test_c.txt|file}} ---- ---- ---- ---- **Lab test 3 ** C and bash Nov. 30, dec. 3 Some of you asked me about "practice test". I have a problem with that, any example I put on this page will be interpreted by many, not all, as this is how the test will be. Instead, here are some example code tests to test your ability in C. [[https://www.w3resource.com/c-programming-exercises/]]