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

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

Introduction

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

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

Day-by-day Details

Day Topic Preparation In-class Due Date Availability
for
Extra
Credit
Friday, February 7 Supplemental Problem 1   Supplemental Problem 1 (done individually) Friday, February 7  
Friday, February 7 Examples
Module 010: Arrays, Functions, Testing, Values, and Addresses
  Examples:    
Monday, February 10 Functions
  • with and without value parameters
  • return values and void functions
lab exercise    
Tuesday, February 11 More functions and parameters
  • Review value parameters
  • Clarify lab on value parameters
  • Begin work with pointer parameters
   
Wednesday, February 12 Functions: value and pointer parameters lab exercise    
Friday, February 14 Hour Test 1 Covers through the lab on functions with value and pointer parameters    
Monday, February 17 Arrays ` lab exercise    
Tuesday, February 18 More parameters
  • More value and pointer pointers
  • Function pointers
Testing
lab exercise    
Wednesday, February 19 Supplemental Problem 2   Supplemental Problem 2 (done individually) Wednesday, February 19  
Wednesday, February 19 Project darts.c (program with random number generator) Uninterpretable Dance Due: Tuesay, February 25  

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.

Grading