CSC 161 Grinnell College Spring, 2013
Imperative Problem Solving and Data Structures

CSC 161 Module to Introduce Arrays, Functions, Testing, and Addresses


This module introduces CSC 161 students to fundamental elements of programming in C, including

  1. Arrays
  2. Functions and Parameters
  3. Testing
  4. Values and Addresses

Day-by-day Details

Day Topic Preparation In-class Due Date Availability
Tuesday, February 12 Examples
Module 2: Arrays, Functions, Testing, Values, and Addresses
Wednesday, February 13 Functions with simple parameters
  • Reading from Text:
    • King: Sections 9.1-9.2, 9.4, pages 183-192, 201-202
    • K&R: 1.7, 4.1-4.3
lab exercise    
Friday, February 15 Arrays ` lab exercise    
Monday, February 18 Hour Test 1 Covers through lab on Functions with simple parameters    
Tuesday, February 19 Functions with general parameters lab exercise    
Wednesday, February 20 The & Operator, Addresses, and Testing
  • Reading from Text
    • King: Sections 11.1-11.2, pages 241-245
    • K&R: 5.1, 5.2
  • reading
lab exercise    
Friday, February 22 Supplemental Problem 2   Supplemental Problem 2 (done individually) Friday, February 22  
Friday, February 22 Project darts.c (program with random number generator) Uninterpretable Dance Due: Wednesday, February 27  

Project: Uninterpretable Dance

Working in pairs, students should develop a program which makes the robot perform a randomized dance. That is, the program should have these features.


This project will be worth 25 points, based on the following rubric: