Introduction to Computing

Fall 2011

Course description

This course aims to provide students with an understanding of the role computation can play in problem solving. It also aims to help students, regardless of their computing background, to feel confident of their ability to write small programs that allow them to accomplish useful goals. The class will use the C programming language. The course also intends to familiarize students with the Linux operating system.

Lectures

Below are lecture slides and additional information in PDF. The slides are not intended to make sense without attending the lecture.

Lecture 01
Vim Cheat Sheet

Lecture 02

Lab Assignments

Lab 01

  1. practice-assignment 01

Lab 02

  1. Lab 02 – Batch 01 – Assignment
  2. Lab 02 – Batch 02 – Assignment
  3. Lab 02 – Batch03 – Assignment

References:

add2.c
annotated-f2c.c

Lab 03

  1. Lab 03 – Batch01 – Assignment
  2. Lab 03 – Batch02 – Assignment
  3. Lab 03 – Batch03 – Assignment

Solutions:

  1. Lab 03 – Batch01:  Problem 1- perfect_square.c, Problem 2- 1nfactorial.c, 2nfactorial.c
  2. Lab 03 – Batch02:  Problem 1- isPrime.c, Problem 2- multiply2.c
  3. Lab 03 – Batch03:  Problem 1- perfect_number.c, Problem 2- 1find_max_min.c, 2find_max_min.c

Lab 04

  1. Lab 04 – Batch01 – Quiz01
  2. Lab 04 – Batch02 – Quiz01
  3. Lab 04 – Batch03 – Quiz01

Solutions:

  1. Lab 04 – Batch01:  Problem 1- fibonacci.c, Problem 2- sum_of_digits.c
  2. Lab 04 – Batch02:  Problem 1- check_ascending.c, Problem 2- median.c
  3. Lab 04 – Batch03:  Problem 1- scd.c, Problem 2- power_factorial.c

Lab 05

  1. Lab 05 – Batch01 – Assignment
  2. Lab 05 – Batch02 – Assignment
  3. Lab 05 – Batch03 – Assignment

Solutions:

  1. Lab 05 – Batch01:  Problem 1- number_frequency.c, Problem 2- calc.c
  2. Lab 05 – Batch02:  Problem 1- number_pyramid.c, Problem 2- days_in_month.c
  3. Lab 05 – Batch03:  Problem 1- max1_max2.c, Problem 2- weekly_timetable.c
  4. Reference (additional notes): This sample program illustrates the use of comments to improve readability of your program annotated-number_frequency.c

Lab 06

  1. Lab 06 – Batch01 – Assignment
  2. Lab 06 – Batch02 – Assignment
  3. Lab 06 – Batch03 – Assignment

Reference:
add2.c

Lab 07

  1. Lab 07 – Batch01 – Assignment
  2. Lab 07 – Batch02 – Assignment
  3. Lab 07 – Batch03 – Assignment

Reference:
function_control_flow.c

Quiz 02

Solutions/Programs:
  1. Q2-whatis_compiler_error.c
  2. Q3-whatis-output.c ,          Q3-plain-vanilla-whatis-output.c (plain code segment without comments)
  3. Q4-number_pyramid_desc.c
  4. Q5-switch.c
  5. Q6-function-combination.c

Lab 08

Reference:

  1. pointers.c
  2. callByReference.c

Assignment:

  1. Lab 08 – Batch01 – Assignment
  2. Lab 08 – Batch02 – Assignment
  3. Lab08 – Batch03 – Assignment

Lab 09

Assignment:

  1. Lab09 – Batch01 – Assignment
  2. Lab09 – Batch02 – Assignment
  3. Lab09 – Batch03 – Assignment

Quiz 03

  1. IDC101 – Fall2011 – Quiz03 – Batch01
  2. IDC101 – Fall2011 – Quiz03 – Batch03
  3. IDC101 – Fall2011 – Quiz03 – Batch02

Lab 11

Reference:

  1. sample_arrays.c
  2. sample input file – sample_input
  3. array_util.h
  4. array_util.c

Assignment:

  1. Lab 11 – Assignment

Lab 12

Reference:

  1. sample_matrix.c
  2. sample input file – sample_input.txt

Assignment:

  1. Lab 12 – Batch 01 – Assignment
  2. Lab 12 – Batch 02 – Assignment
  3. Lab 12 – Batch 03 – Assignment

Quiz 04

IDC101 – Fall2011 – Quiz04

© 2011 Farhat Habib Suffusion theme by Sayontan Sinha