View Single Post
Old May 6th, 2006, 12:14 PM   #4
gryfang
Programmer
 
gryfang's Avatar
 
Join Date: May 2006
Location: Ohio
Posts: 36
Rep Power: 0 gryfang is on a distinguished road
Send a message via AIM to gryfang
Quote:
Originally Posted by psicodelic
I am trying to figure out in a problem as follows:
-Open the file
-Read three fields in each record and ...
I noticed you Said Read three fields... and You play with only State and Population (what's the third field).
I'd at least ask the Teach/Prof about the exact format the file will be in, [State, Population, Age] or [Population, State \\\ DateAdmittedIntoUnion <Year>] so that you know how to do your problem.
Also I would think about all the error cases that you could encounter so you don't get penalized for not thinking about then (Such as the user entering Florida twice with two different populations, of the User entering Florida with a population of a string "People").
Those are just suggestions and you really have to work on the solution a little so that the problems you have specifically can be overcome except for just stating a generality and waiting for a miracle.

I hope my rant helped
__________________
--------------------
LOAD "*" ,8,1

God bless
- Gryfang
gryfang is offline   Reply With Quote