|
-
Sep 19th, 2000, 04:08 PM
#1
Thread Starter
New Member
I REALLY REALLY need help with a collage assignment, im desperate im sure its really simple 4 some of you,
Write a program to count the number of people in the following age groups
0-9 10-19 20-29 ... 90-99
Prompt the user to enter 10 ages the user must be able to quit any time b4 this if required.As each age is taken in, store it in the correct age category.Display the categories and the corresponding number of ages in each grouponce all the ages are input.
What i know is we need to use an array,(count -count9 ),divide the age input by 10 to get the corresponding category,
What i need to know is how to use the loop and array??
I was told i will need to get one value before i start the loop
If anyone out there can send me the solution i will be FOREVER GRATEFUL mail me at [email protected]
PLEASE PLEASE I HAVE A DEADLINE!!!!
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
|