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

CSC 161 Module to Introduce Conditionals, Loops, and Scribbler 2 Motion

Introduction

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

  1. using conditional statements (e.g., if, switch),
  2. using loops (e.g., initialization, iteration, condition testing, loop body with for, while), and
  3. introducing motion with the Scribbler 2 robot.

Day-by-day Details

Day Topic Preparation In-class Due Date Availability
for
Extra
Credit
Wednesday, February 1 Module 1: Conditionals, Loops, and Motion   Examples    
Monday, February 6 Types and Variables (with casting) Kernighan & Ritchie, 1.1, 2.1-2.4, 2.7 Types and Variables Lab    
Tuesday, February 7 Conditionals, Scribbler 2
  • Motion
Conditionals Lab    
Wednesday, February 8 Loops Kernighan & Ritchie, 1.3, 1.4, 3.5
Examples:
Loops Lab   Monday, February 13
Friday, February 10 Loops and Scribbler 2 Motion Kernighan & Ritchie, 3.6-3.7 Motion and Loops Lab    
Monday, February 13 Supplemental Problem 1   Supplemental Problem 1 (done individually) Monday, February 13  
Monday, February 13 Project   Robot performs looped actions and sounds Friday, February 17  

Project Options

Working in pairs, students should develop a program that includes these elements:

Together with the program, a student pair must write a paragraph that describes what steps are needed to demonstrate the program is working correctly (this can be pseudocode).

Project Submission

Here are some guidelines for this project:

Grading

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