|
-
September 6th, 2007, 11:00 AM
#1
Much Needed Help With A Program
I am suppose to write a program in C that basically uses a few functions: Here is what the program is suppose to do. I am not sure how to put this one together. Any help would be much appreciated.
I need to write a program that will generate 100 random numbers between 1 and 50. Using these numbers, generate a list that will tell the number of random numbers that fell between 1-5, 6-10, 11-15, 16-20, ... , and 46-50. Print out the results as a histogram (a line representing the number of values). Your output might look like the example below:
1-5 (11) ***********
6-10 (8) ********
11-15 (12) ************
16-20 (9) *********
21-25 (10) **********
26-30 (11) ***********
31-35 (7) *******
36-40 (8) ********
41-45 (13) *************
46-50 (11) ***********
If anyone knows how or what I should do to get started, please help....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|