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

Username:   Password: 
 RegisterRegister   
 can anyone please help me with this programming question?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
555_faiz




PostPosted: Wed Apr 08, 2009 5:04 pm   Post subject: can anyone please help me with this programming question?

Ask the user for a word. If it contains the work "cat", replace it with "dog"
Eg: input scatter
Output sdogter
Sponsor
Sponsor
Sponsor
sponsor
saltpro15




PostPosted: Wed Apr 08, 2009 5:08 pm   Post subject: RE:can anyone please help me with this programming question?

pretty simple, just check if the input string contains "cat" and if it does, replace it with dog, then add the rest of the string
BigBear




PostPosted: Wed Apr 08, 2009 5:23 pm   Post subject: RE:can anyone please help me with this programming question?

Look into the index command in the F10 help or this link

http://compsci.ca/holtsoft/doc/index.html
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  [ 3 Posts ]
Jump to:   


Style:  
Search: