Hello everyone
If anyone can help me with my lab problem, it will be greatly appreciated. I hope it's not a dumb question! Here it is:
>>This program will “pronounce” an ordinary sentence with a lisp. Prompt the user to enter a sentence. Read the characters one at a time using getchar(), until a period appears. As they are read, convert everything to lower case and test for occurrences of the character ‘s’ and the pair “ss”. Replace each ‘s’ or “ss” by the letters ‘t’ and ‘h’. Print the converted message using putchar().
For example, given the sentence “I see his house.”, the output would be “I thee hith houthe.”<<
I am not sure how to do this program code?? I know how to use getchar and putchar to print out how many spaces are in a sentence but not how to change things in the sentence and print out the changed sentence, any help would be very nice! : )