CSC207H1 Study Guide - Midterm Guide: Tab Key, Regular Expression, Operand

69 views5 pages
24 Sep 2012
School
Course
Professor

Document Summary

Consider these les: e1. txt, e2. txt, and e3. txt lists of e1, e2, and e3 marks. marks. txt a summary le containing all marks. gather. py produces the le marks. txt, a summary of the marks in e1. txt, e2. txt, and e3. txt. [5 marks] write a make le that has two targets: clean removes marks. txt. marks. txt runs gather. py if marks. txt is older than any of e1. txt, e2. txt, or e3. txt. Answer: clean: rm marks. py marks. txt: e1. txt e2. txt e3. txt python gather. py. Assume that you have been asked to generalize gather. py so that it works with any number of individual marks les rather than working explicitly with e1. marks, e2. marks, and e3. marks. It should do this by reading the names of those les as command line arguments using getopt. Only total. txt can be speci ed using an option parameter. Only m1 through m4 can be speci ed using option parameters. All ve les can be speci ed using option parameters.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions