Results 1 to 1 of 1
- 10-22-2010, 12:16 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 8
- Rep Power
- 0
Fairly Simple (I think) programming project
I need a simple program to read in a flat file, and write out a flat file based on some stuff. The input is data maps of programmed survey questions. The output is file that defines some locations and codes. That is probably a confusing description -- see the example below.
Below is what a single question in the input file looks like. They are all enclosed in {}
The key pieces of information we need are the data location. (in this case 906.2) and the response codes. (look at the bold stuff)
{ L4: #12.92 906.2
L4.
What is your current marital status? Are you ...
(READ LIST. RECORD ONE RESPONSE.)
!FLD, , 1
() 01 Single
() 02 Married
() 03 Living with significant other
() 04 Divorced/separated
() 05 Widowed
() 99 Refused }
So from a file that contains the above, we would need to locate a marital status question. (probably look for keyboards, like divorced, or married in response text)
Then determine the location, and use the location and the codes to define 4 standard categories. Below is what the output file would look like.
>def @marital1 [906.2#02] //@marital1 defines Married
>def @marital2 [906.2#01] //@marital2 defines Single / never married
>def @marital3 [906.2#03] //@marital3 defines Living with someone
>def @marital4 [906.2#04,05] //@marital4 defines Separated / widowed / divorced
That is the concept. There would be some other kinds of questions like age, ethnicity, income, gender, education, etc
I would provide some detailed specs as to what will qualify a question as marital, or income, etc -- and what terms exactly will count for each defined category within that type of question, etc
One of the companies I already got a quote from, suggested using an XML config file so that the rules could actually be tweaked after the fact. (e.g. if I wanted to add a qualifying keyword, etc) So that functionality would be nice.
Contact me or post here if you have any questions.Last edited by Glyph; 10-22-2010 at 06:31 PM.
Similar Threads
-
Finding mean and Standard Dev - fairly simple
By Adomini in forum New To JavaReplies: 14Last Post: 08-31-2010, 12:51 AM -
Need help with project (new to programming and java)
By BobTedmen in forum Java 2DReplies: 2Last Post: 04-12-2010, 05:06 AM -
Simple Programming problem loop in array
By katon in forum New To JavaReplies: 1Last Post: 12-20-2009, 03:14 PM -
Simple Project 4 or 5 Hours – Pay $100
By billaaa777 in forum Jobs OfferedReplies: 0Last Post: 08-30-2008, 12:45 AM -
[SOLVED] Very Simple 2-3 hour project $50
By arbit3r in forum Jobs OfferedReplies: 3Last Post: 08-05-2008, 03:20 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks