Go Back   Science Forums > Help and Advice > Questions and Answers
Comment
 
LinkBack Question Tools
Published by analynsarte 06-10-2009
Not Ranked  0 score     
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
Comment

Bookmarks

Tags
program

Currently Active Users Viewing This Question: 1 (0 members and 1 guests)
 
Question Tools


Similar Threads
Question Question Starter Category Comments Last Post
Can 1 elo program beat 1000000000 elo program? Emre_1974tr Chess Forum 7 1 Week Ago 02:14 AM
a very unique math program jungjedi Websites 2 02-25-2007 11:18 AM
subliminal program nelton Political sciences 7 10-16-2005 11:39 AM
Higher Primates Can Program Tormod Watercooler 0 07-23-2003 03:28 PM

» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 10:10 PM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network
Powered by GARS © 2005-2008