Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How To Make this Program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
changming22x




PostPosted: 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



Sample output.txt
 Description:

Download
 Filename:  Sample output.txt
 Filesize:  727 Bytes
 Downloaded:  73 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Euphoracle




PostPosted: 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




PostPosted: 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




PostPosted: 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.




PostPosted: Sun Feb 21, 2010 9:09 pm   Post subject: RE:How To Make this Program

Sarcasm?
USEC_OFFICER




PostPosted: 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




PostPosted: 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




PostPosted: 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!!! Smile
Sponsor
Sponsor
Sponsor
sponsor
USEC_OFFICER




PostPosted: 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.)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 9 Posts ]
Jump to:   


Style:  
Search: