944,123 Members | Top Members by Rank

Ad:
Oct 18th, 2009
0

IT newbie needs immeadiate help with pseudo code algorithm

Expand Post »
Here's the problem:
"Daily life magazine wants an analysis of the demographic characteristics of its readers. The Marketing department has collected reader survey records containing the age, gender, marital status, and annual income of readers. Design an application that accepts reader data and produces a count of readers by age groups as follows: under 20, 20-29, 30-39, 40-49, 50 and older."

I know that the answer should include an array but i'm very confused as to how to search the array then organize the results by age groups. I if you can help, this assignment is due at midnight tonight so please hurry, thanks!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
acm09 is offline Offline
2 posts
since Oct 2009
Oct 18th, 2009
1
Re: IT newbie needs immeadiate help with pseudo code algorithm
Click to Expand / Collapse  Quote originally posted by acm09 ...
Design an application that accepts reader data and produces a count of readers by age groups as follows: under 20, 20-29, 30-39, 40-49, 50 and older."
Essentially these are your requirements and the rest of the paragraph didn't matter whatsoever. I don't really see how we can help without designing the algorithm for you, but as a hint, consider that you only need to do these things:

1. create an array of size 5, one for each of your age groups, anmd initialize each index of the array to 0.
2. read in data and based on what age group each piece of data fits into, add one to the appropriate array index.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
Oct 18th, 2009
0
Re: IT newbie needs immeadiate help with pseudo code algorithm
that was very helpful, thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
acm09 is offline Offline
2 posts
since Oct 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: How to do an algorithm
Next Thread in Computer Science Forum Timeline: Query to compute the no. of exchanges





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC