lab_04 - Lab 04 Unmarked Assignment 3 ENGINEER 1D04 Dr...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 04: Unmarked Assignment 3 ENGINEER 1D04 Dr. William M. Farmer and Dr. Spencer Smith McMaster University, Fall 2010 Revised: 5 October 2010 This assignment, which is similar to Exercise 15 in Chapter 4, will not be marked. You should do it, however, as if it were being marked. For practice, submit it before 2:10 pm. Future marked assignments will not be accepted after this time. Background wc (for “word count”) is a well-known unix program that computes the number of lines, words, and characters in a text file. A line is a string of characters delimited by newline characters, and a word is a string of characters delimited by space characters or newline characters. Overview The purpose of this assignment is to write a Python version of the unix wc program. Design, implement, and test a program that satisfies the require- ments below. Submit your program on Avenue to Learn. Requirements 1. The program asks the user to enter the name of a text file ( f ). 2. The program computes:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

lab_04 - Lab 04 Unmarked Assignment 3 ENGINEER 1D04 Dr...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online