This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Objective(s): increase knowledge of loops use a file for input handle the end-of-file condition select values from a file Assignment description: You did a survey of ages of people who voted in the last election. You keep the ages in a file. What is the min, max, and mean (average) voting age? For extra credit, what is the mean voting age if you don't include any of the min and max responses? (This is called the trimmed or truncated mean, http://en.wikipedia.org/wiki/Truncated_mean, or the interquartile mean, http://en.wikipedia.org/wiki/Interquartile_mean.) Summary of what to submit: The program, 2 test input data files, and 2 test outputs....
View Full Document
- Spring '11