Jump to content
Science Forums

Recommended Posts

Posted

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. The records, saved in a file, EX6_1.DAT, follow:

123.,134,122,128,116,96,83,144,143,156,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. But modify the program so that the input is read by calling a function named read_data (). The input specs is to use the array sewage_amt[100] to read the number of millions of gallons from file EX6_1.DAT. The output spec is to display the following data on 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

 

---anyone can help me build a program using any language that best suit with this problem.Thanks!

 

------------------------------

Science News and Reasearch

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...