Author |
Message |
changming22x
|
Posted: Sat Feb 20, 2010 9:24 pm Post subject: How To Make this Program |
|
|
What is it you are trying to achieve?
Creating this Program to work efficiently.
What is the problem you are having?
Dont know how to create program.
Describe what you have tried to solve this problem
well i tried making the code but output is terrible.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Question:
a)The metro police dept wants a list of those criminals in the computer files who have been convicted of theft. The file being read in contains the NAME, OFFENSE, and CONVICTION, DATE of each criminal. The offenses are listed as letter codes: T(Theft), A(ARSON), and H (HOMICIDE). The list should contain the NAME, the OFFENSE written out and the CONVICTION DATE of those who are arrested for theft.Clearly show all data used to test your program. Make up your own data with at least 15 names.
b)Modify your program to print out the NAMES and DATES for two of the separate groups of offenses
Any sort of help or guides would be appreciative thanks.
Please specify what version of Turing you are using
Turing 4.1
Description: |
|
Download |
Filename: |
Sample output.txt |
Filesize: |
727 Bytes |
Downloaded: |
73 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Euphoracle
|
Posted: Sun Feb 21, 2010 11:24 am Post subject: RE:How To Make this Program |
|
|
show us what you have done and what you need help with specifically
|
|
|
|
|
|
USEC_OFFICER
|
Posted: Sun Feb 21, 2010 4:37 pm Post subject: RE:How To Make this Program |
|
|
Changming22x, your grammar is horrible, and you expect us to be able to read minds. Let me tell you, the last time I tried it, I ended up in a back alley with a drunken monkey and somebody's left arm. I don't want to have to go through it again.
|
|
|
|
|
|
Euphoracle
|
Posted: Sun Feb 21, 2010 8:14 pm Post subject: RE:How To Make this Program |
|
|
thanks for that useful post, im glad we have you to tell 'em what's what.
|
|
|
|
|
|
andrew.
|
Posted: Sun Feb 21, 2010 9:09 pm Post subject: RE:How To Make this Program |
|
|
Sarcasm?
|
|
|
|
|
|
USEC_OFFICER
|
Posted: Sun Feb 21, 2010 9:37 pm Post subject: RE:How To Make this Program |
|
|
Yes, it's clearly sarcasm.
PS The guy got his arm back. We ate the drunken monkey.
|
|
|
|
|
|
mirhagk
|
Posted: Mon Feb 22, 2010 11:59 pm Post subject: RE:How To Make this Program |
|
|
changming do you need help with reading stuff from a file?? File.Open does that, read on it in the help docs (ps id suggest creating the data with a turing program, cuz sometimes turing kinda screws up with files not perfectly formatted)
|
|
|
|
|
|
changming22x
|
Posted: Sat Feb 27, 2010 7:00 pm Post subject: Re: RE:How To Make this Program |
|
|
mirhagk @ Mon Feb 22, 2010 11:59 pm wrote: changming do you need help with reading stuff from a file?? File.Open does that, read on it in the help docs (ps id suggest creating the data with a turing program, cuz sometimes turing kinda screws up with files not perfectly formatted)
Thank You!!!
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
USEC_OFFICER
|
Posted: Sat Feb 27, 2010 8:32 pm Post subject: RE:How To Make this Program |
|
|
That's what you wanted? Shows you how good I am at mind-reading. (See above posts.)
|
|
|
|
|
|
|