Homework 3

Please read chapter 1 from The Mythical Man-Month and then answer the following questions.

1. Explain the difference between a Program, and a Programming System as given by Brooks. (3 pts.)

2. Explain the difference between a Program, and a Programming Product as given by Brooks. (3 pts.)

Now, imagine that you are in a directory with the following set of files: r1q5s rqqs q51qs sss qqrs

3. What files from the list above match the shell wildcard pattern "[qrs]*q?s"? (2 pts.)

Now, imagine that you have a file with the following content:


                                                         01/06/2006
                                                                   
For the 25th segment of our trip, we traveled 1254.25 miles between
New York City and Boulder, Colorado. For the 26th segment of our
trip, we traveled 538.702 miles between Boulder and Los Gatos,
California.

4. Write a regular expression that would capture the two distances given for the two segments mentioned in the file. This means that your regular expression will surround the pattern that matches the distances in parens and will ignore all other numbers in the file. Note: you should write only one regular expression that can capture both distances and your regular expression can NOT be "(1254.25|538.702)". (2 pts.)

Submission

Please submit homework 3 by placing your answers in a text file (not MS Word, not PDF, just plain text) and uploading the file to the moodle.