akosiraff

Download Sewage_Frequency_Distribution

Apr 19th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/sewage_frequency_distribution/
  3. The number of millions of gallons of sewage that are disposed of each day for a major city is measured continuously for about one month. These records saved in a file, EX6 _1.DAT. follow: 123, 134, 122, 128, 116, 96, 83, 144, 143, 156,
  4. 128, 138, 121, 129, 117, 96, 87, 148, 149, 151, 129, 138, 127, 126, 115, 94, 83, 142 Write a program to calculate the frequency distribution using an interval of 10 million gallons per day. The input specification is to use the array sewage_amt(100) to read
  5. the number of millions of gallons from file EX6 _1.DAT. The output specifications is to display the following data on the screen Day no. Millions of gallons 1 123 2 134 3 122 Sewage per day Frequency of occurrence 81 -90 3 91-100 3 101-111 0 Part 2 Modify
  6. the program so that the input is read by calling a function named read_data (). Part 3 Modify the program so that the output is displayed by calling a function display (). The declaration of the display () function is: Void display (int mil_gal(), int array_size);
  7. Where mil_gal represents an array to be use to pass the information in the array sewage_amt(100), and the array_size is the total number of records.
  8. Download: http://solutionzip.com/downloads/sewage_frequency_distribution/
Add Comment
Please, Sign In to add comment