• Introductory Lab: (Week 3, Wednesday, 25th January 2012)
    Guides on Unix/cygwin/sunfire, vim and CodeCrunch


  • Take-home Lab 1: (Week 4, Wednesday, 1st February 2012)
    Matrix determinant and cofactor matrix
    Sit-in Labs Briefing
    How to view questions in assessed labs


  • Sit-in Lab 1: (Week 5, Wednesday, 8th February 2012)
    Set A: Matrix Inverse; Number of modules
    Set B: Matrix Determinant; Father and son
    Sample solutions (code only, no comments)


  • Take-home Lab 2: (Week 6, Wednesday, 15th February 2012)
    Pretty printing polynomial, Newton-Raphson method and additional practice from UVa Online Judge
    pretty.c suggested solution
    newton.c suggested solution
    quad.c suggested solution


  • Sit-in Lab 2: (Week 7, Wednesday, 29th February 2012)
    Set A: Average of the number; Pi
    Set B: Students' marks; Exponential function
    These tasks were also uploaded to CodeCrunch for self-practice.
    Sample solutions


  • Take-home Lab 3: (Week 8, Wednesday, 7th March 2012)
    Cell division, shortest distance between point and curve, grayscale graph plotter
    cell.c suggested solution
    cell_recursive.c suggested solution
    nearest.c suggested solution
    plotter.c suggested solution


  • Sit-in Lab 3: (Week 9, Wednesday, 14th March 2012)
    Set A: IncrediBank; Median of the marks
    Set B: UnstableBank; Road Elevation
    These tasks were also uploaded to CodeCrunch for self-practice
    Sample solutions


  • Take-home Lab 4: (Week 10, Wednesday, 21st March 2012)
    Turtle graphics
    turtle.c suggested solution
    turtle2.c suggested solution


  • Sit-in Lab 4: (Week 11, Wednesday, 28th March 2012)
    Set A: The old mosquito; The grey pattern
    Set B: The wheel of fortune; The greedy snake
    These tasks were also uploaded to CodeCrunch for self-practice
    Sample solutions


  • Take-home Lab 5: (Week 12, Wednesday, 4th April 2012)
    Textual frequency analysis, artificial text synthesis
    freq.c suggested solution
    text.c suggested solution


  • Sit-in Lab 5: (Week 13, Wednesday, 11th April 2012)
    Set A: Longest increasing sequence; Finding NEMO (Not literally!)
    Set B: Sequence with a given sum; Latin Square Solver
    Sample solutions


  • Make-up Sit-in Lab: (Week 13, Saturday, 14th April 2012)
    The File Extension; The Mine Marker
    Sample solutions


  • Extra practice on 1D/2D arrays (Last semester Programming Exam):
    Set A: Characters Deletion; Bridge Building; Bonus Task: Permutations
    Set B: Characters Insertion; The golden Spear; Bonus Task: Permutations
    These tasks were also uploaded to CodeCrunch for self-practice
    Sample solutions


  • Extra practice on structures (Last semester Take-home Lab):
    The Sales Figures
    Sample solution