It writes every meaningful line in consideration to

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: list of values corresponding to the column headings (assume that there is at least one of these lines). The last line corresponds to web users whose country could not be determined; this line should be completely ignored and not included in any calculations. The file gives statistics for web visitors based on their country and language. We call a line in the file meaningful if the Pages/Visit value is at least 5.0 and the Bounce Rate value is less than 40.0. A line is in consideration if it is not from Canada, its language is not "en", its language is not "fr", its language does not begin with "en-", and its language does not begin with "fr-". Write a function maybe_translate that consumes the name of a file formatted as described above and the name of an output file. It writes every meaningful line in consideration to the output file. The written...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online