This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Descriptive Statistics CSc 1253: Programming Project # 5 Descriptive Statistics on Numeric Data Out: 11/16 Due: 11/29 by 11:50 PM Learning Objectives • More on File Input/Output • Implement Functions With Arrays As Formal Parameters • Describe Quantitative Data With Statistical Measures Definition 1. Statistics is a mathematical science concerned with data col lection, presentation, analysis, and interpretation. One major use of statistics is to use information from a sample to infer something about a population. For example, bacteria are the most important component of microbial ecosys tems in sewage treatment plants. Microbiologists must know the percentage of active bacteria at each state of the sewage treatment. The accompa nying data represent the percentages of respiring bacteria in twentyfive raw sewage samples collected from a sewage plant. (Measurements were obtained by passing the samples through a membrane filter and staining with a chlo rination solution.) The program you will write in this project will calculate various numerical descriptive measures. Test your program using the sample measurements in the sewage.data file below: 42.3 50.6 41.8 36.5 28.6 40.7 48.1 48.0 45.7 39.9 31.3 30.7 40.5 40.9 51.2 38.6 35.6 22.9 33.4 46.5 41.5 43.5 41.1 38.5 44.4 You may also want to test your program using this the onetoten.txt data set as well: 1 2 3 4 5 6 7 8 9 10 Your program will assume a maximum of 1000 measurements in the data file. Declare a global constant in your program to store this number. Your pro gram should read and count the actual number of measurements and store them in an array. Your program will print the maximum measurement, min imum measurement, range, mean, median, variance and standard deviation of the data....
View
Full
Document
This note was uploaded on 06/20/2011 for the course CSC 1253 taught by Professor Staff during the Fall '08 term at LSU.
 Fall '08
 Staff

Click to edit the document details