numbers % program

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
User avatar
horsemen_
Senior Member
Posts: 1488
Joined: Thu Mar 21, 2002 3:30 pm
Location: Edwards Air force base Ca

numbers % program

Post by horsemen_ »

i would like to know if thier a program out thier that will tell me how often a number comes up in a list of numbers thier is prouble over 800 numbers and i would like to know how often each numbers shows up and what the % of that numbers is coming up thanks
User avatar
A_old
Posts: 10663
Joined: Sun Jan 30, 2000 12:00 am
Location: Atlanta

Post by A_old »

Doubtful, but it wouldn't be terribly hard to write. How is the input to be entered? comma seperated values? (e.g. 1, 2, 500, 3, 600, 23, 42). This isn't something you are supposed to write for school, is it? If it isn't a program you're supposed to write for school, I could write one for you in C#/Java in about half an hour.. but it'll have to be Thursday or Friday since I have an exam thursday. Assuming the comma seperated deal I mentioned, that is (i.e. you'd paste the string of numbers into a text box and hit a button, the program would generate a report on screen or spit out a file). I suppose space seperated or dimilited by any character that isn't a number would be fine too... 1 2 3 4 5 or 1.2.3.4.5..i'd need to know in advance what character it was though.

Also, as the numbers integers (1,2,3) or float/double (1.234232, 1.2, 4322.212)...?
User avatar
A_old
Posts: 10663
Joined: Sun Jan 30, 2000 12:00 am
Location: Atlanta

Post by A_old »

Well, just for fun, I wrote a program to do this, I'll put it up on my webspace so you can download it shortly. (Going to eat dinner first)
User avatar
A_old
Posts: 10663
Joined: Sun Jan 30, 2000 12:00 am
Location: Atlanta

Post by A_old »

Well, enjoy. I'm off to study. Read the blurb about it at http://www.amromousa.com/downloads before using it.

http://www.amromousa.com/dev/numcounter ... ounter.zip


BTW, you must have the Microsoft .net framework 2.0 installed for this to work. Please let me know if you end up using it :)

Here's a screenie:

Image
User avatar
vinnie
Posts: 1620
Joined: Sun Dec 15, 2002 5:07 am
Location: Sydney, Oz

Post by vinnie »

If you intend doing any other statistical analysis... I reccommend Openstat: http://www.statpages.org/miller/openstat/ . Free and fairly useful.
Australian Regular Army and proud of it.
Post Reply