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.
Lab Assignments
Lab 01
Lab 02
References:
Lab 03
Solutions:
- Lab 03 – Batch01: Problem 1- perfect_square.c, Problem 2- 1nfactorial.c, 2nfactorial.c
- Lab 03 – Batch02: Problem 1- isPrime.c, Problem 2- multiply2.c
- Lab 03 – Batch03: Problem 1- perfect_number.c, Problem 2- 1find_max_min.c, 2find_max_min.c
Lab 04
Solutions:
- Lab 04 – Batch01: Problem 1- fibonacci.c, Problem 2- sum_of_digits.c
- Lab 04 – Batch02: Problem 1- check_ascending.c, Problem 2- median.c
- Lab 04 – Batch03: Problem 1- scd.c, Problem 2- power_factorial.c
Lab 05
Solutions:
- Lab 05 – Batch01: Problem 1- number_frequency.c, Problem 2- calc.c
- Lab 05 – Batch02: Problem 1- number_pyramid.c, Problem 2- days_in_month.c
- Lab 05 – Batch03: Problem 1- max1_max2.c, Problem 2- weekly_timetable.c
- Reference (additional notes): This sample program illustrates the use of comments to improve readability of your program annotated-number_frequency.c
Lab 06
Reference:
add2.c
Lab 07
Reference:
function_control_flow.c
Quiz 02
- Q2-whatis_compiler_error.c
- Q3-whatis-output.c , Q3-plain-vanilla-whatis-output.c (plain code segment without comments)
- Q4-number_pyramid_desc.c
- Q5-switch.c
- Q6-function-combination.c
Lab 08
Reference:
Assignment:
Lab 09
Assignment:
Quiz 03
- IDC101 – Fall2011 – Quiz03 – Batch01
- IDC101 – Fall2011 – Quiz03 – Batch03
- IDC101 – Fall2011 – Quiz03 – Batch02
Lab 11
Reference:
- sample_arrays.c
- sample input file – sample_input
- array_util.h
- array_util.c
Assignment:
Lab 12
Reference:
- sample_matrix.c
- sample input file – sample_input.txt
Assignment:
Quiz 04