Guest User

Untitled

a guest
Mar 31st, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Design a modular algorithm (flowchart and pseudo-code), code (C#) and test (desk check and test plan) a solution to solve the following problem:
  2.  
  3. The city of Ankh-Morpork held a special census to collect data on its residents. The file containing the results of the census is structured as follows:
  4.  
  5. FIELD DESCRIPTION DATA TYPE VALID VALUES
  6.  
  7. Age Numeric Greater than 0
  8.  
  9. Gender Character M, m, F, f
  10.  
  11. Marital Status Character M, m, S, s
  12.  
  13. District Numeric 1 - 22
  14.  
  15. The fields in each record will be separated by a comma.
  16.  
  17. For example: 21, M, S, 1
  18.  
  19. The city has 22 districts. The census department wants to see a listing of how many residents are in each district, and a count of residents in each of the following age groups (for all the districts combined): under 18, 18 through 30, 31 through 45, 46 through 64, and 65 or older.
Advertisement
Add Comment
Please, Sign In to add comment