CSC 161 | Grinnell College | Fall, 2013 |
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 |
---|---|---|---|---|---|
Wednesday, December 4 | Introduction |
| |||
Friday, December 6 | Command-Line Arguments |
| lab exercise | ||
Monday, December 9 | Files |
| lab exercise | Extra Credit Lab, if submitted by Friday, December 13 at 5:00 pm | |
Tuesday, December 10 | Project Day 1 | project | Friday, December 13 | ||
Wednesday, December 11 | Supplemental Problem 5 | Supplemental Problem 5 (done individually) | Wednesday, December 11 | ||
Wednesday, December 11 | Project Day 2 | project | Friday, December 13 |
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.
it should be possible for a user to utilize both -w and -r mode.
This program should support at least 10 different actions (following the module 011 project command requirements).
You are encouraged to use either your module 011 project or your command-robot.c program as the basis for the command input.
One approach would involve two variables readMode and writeMode.