Computer Science E50b
Tuesday Section . 7pm . Science Center 111

TF: Alix Marchandise-Franquet
February 9, 1999

Introduction

TF Vital Statistics

Alix Marchandise-Franquet

Where to turn in your homework
Outside of Science Center 102, the box with my name on it

Office Hours
* Always, by e-mail
* After section on Tuesday nights in the Science Center
* Most Sunday afternoons/nights before an assignment is due, in the basement of the science center
* Feel free to ask questions after lecture too (I usually sit in the back).

A word on the Unit Five Problem Set

* There will be a lecture handout and lecture demo on 'submit' coming up, probably Feb 22nd!
* Name your files as instructed in the problem set
* If you got the makefile for this assignemnt before Feb 8th, you need to copy it again since it has changed (~libe50b/unit5/assign/Makefile)

Pencil and Paper

* Those of you who took e50a recall that although this section is called "pencil and paper" you are encouraged to type your work.

* Get the input character by character (you need a loop), remember that there are several ways of doing this: cin.get() and cin >> What is the difference between the 2? Does it matter for this problem? What do you need to keep track of?

Programming Problems

* You must submit electronically, turn in printouts of your source code as well as the sample output.

Problem 2

Remember recursion from e50a? What is the base case here? What is the general case? When do you print to the screen (before or after the recursive call) ?

Problem 3

Here are the rules that define valid telephone numbers:
format is DDD-DDD-DDDD, where:
...each D must be a digit character,
...the first and fourth D cannot be '0' (the zero digit),
...there may be any amount of WHITE SPACE allowed to the left or right of the HYPHENS.

Problem 4

* Please document all your functions, i.e. put comments on what you think they do.
* Part 3 can be tricky, if for example you add 2 minutes to 11:59:00