can anyone please help me with this programming question?
Author |
Message |
555_faiz
|
Posted: 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

|
|
 |
saltpro15

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