CSC 161 | Grinnell College | Fall, 2012 |
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, December 4 | Module 7: Introduction |
| |||
Wednesday, December 5 | Command-Line Arguments |
| lab exercise | ||
Friday, December 7 | Files |
| lab exercise | ||
Monday, December 10 | Files Continued |
| lab exercise | Friday, December 14 | |
Tuesday, December 11 | Supplemental Problem 5 | Supplemental Problem 5 (done individually) | Tuesday, December 11 | Discussion of solutions | |
Tuesday, December 12 | Module 7 Project Day 1 | project | Friday, December 14 | ||
Wednesday, December 13 | Module 7 Project Day 2 | project | Friday, December 14 |
Write a "robot logger" program which can log actions to a file, and also read actions from a file and perform them.
if the use specifies a command-line directive -w, then
if the use specifies a command-line directive -r, then
if no command-line arguments are given, the program should remind the user that the program requires -w or -r.
This program should support at least 10 different actions (following the module 3 project command requirements).
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)