| CSC 161 | Grinnell College | Fall, 2011 |
| Imperative Problem Solving and Data Structures | ||
The purpose of this module is to smoothly integrate and review material that has been presented through the semester, with a particular emphasis on C programming concepts and full usage of the Scribbler robot.
| Day | Topic | Preparation | In-class | Due Date | Availability for Extra Credit |
|---|---|---|---|---|---|
| Tuesday, November 29 | Module 7: Introduction |
| |||
| Wednesday, November 30 | Command-Line Arguments |
| lab exercise | ||
| Friday, December 2 | Files |
| lab exercise | ||
| Monday, December 5 | Files Continued |
| lab exercise | ||
| Tuesday, December 6 | Module 7 Project Day 1 | project | |||
| Wednesday, December 7 | Do ONE of supplemental problem 4 or supplemental problem 5 | Wednesday, December 7 | BOTH problems may be done for extra credit; Second (extra credit) Due Friday, December 9 at 5:00 pm | ||
| Wednesday, December 7 | Module 7 Project Day 2 | project | Friday, December 9 | ||
| Friday, December 9 | Show and Tell; End-of-Course Evaluations | Project Demonstrations | |||
| All extra Credit | Friday, December 9 at 5:00 pm | ||||
Write a "robot logger". This is a program which can log actions to a file, and also read actions from a file and perform them. You should use command-line input flags to specify whether the robot is in "read" mode (reading actions from a file) or "write" mode (logging actions onto a file). This program should support at least 10 different actions (following the module 3 project command requirements). You can use either standard i/o or command-line input to control the robot in "write" mode. You are encouraged to use either your module 3 project or your command-robot.c program as the basis for the command input.
This project will be worth 25 points, based on the following rubric:
The program can write actions to a file. (5 points)
The program can read back the actions file and perform those actions in order as listed in the file. (5 points)
The program can be executed with the -w (write) flag and the -r (read) flag. (5 points)
There are at least 10 different robot actions supported, with either standard i/o or command-line input supported (5 points)
Code is well documented, reasonably efficient and well-structured, and example command files are given. (5 points)
This document is available on the World Wide Web as
http://www.cs.grinnell.edu/~walker/courses/161.fa11/modules/module-comm-line-files/module-comm-line-files.shtml
|
created 19 July 2011 by Erik Opavsky revised 16 August 2011 by Erik Opavsky edited 5 December 2011 by Henry M. Walker |
|
| For more information, please contact Henry M. Walker at walker@cs.grinnell.edu. |