Do exercise 8.6 (page 357) from the textbook. Follow the instructions in the exercise, as well as the following:
Input a line of text, up to 99 characters: > The quick brown fox jumped. The lazy dog, he was jumped over. Uppercase output: THE QUICK BROWN FOX JUMPED. THE LAZY DOG, HE WAS JUMPED OVER. Lowercase output: the quick brown fox jumped. the lazy dog, he was jumped over. Original string: The quick brown fox jumped. The lazy dog, he was jumped over.
Input a line of text, up to 99 characters: > Mary Had A Little Lamb. His name was Fleecy Pete. Uppercase output: MARY HAD A LITTLE LAMB. HIS NAME WAS FLEECY PETE. Lowercase output: mary had a little lamb. his name was fleecy pete. Original string: Mary Had A Little Lamb. His name was Fleecy Pete.
Do exercise 8.11 (page 358) from the textbook. Follow the instructions in the exercise, as well as the following:
const char* article[] = {"the", "a", "one", "some", "any"}; const char* noun[] = {"boy", "girl", "dog", "town", "car"}; const char* verb[] = {"drove","jumped","ran","walked","skipped"}; const char* preposition[] = {"to", "from", "over", "under", "on"};Note also that these are arrays of pointers to fixed strings, and as such, they may NOT be changed in the program. To attempt to do so will result in either compile errors or segmentation fault errors.
Programming Exercise 8.11: Sentences The girl ran to a town. Any girl jumped under one car. Any town jumped to the boy. The car ran to some boy. A boy jumped to a town. Some town skipped from a town. Any boy jumped under the town. One girl jumped to a car. The town walked over some dog. Any girl skipped to some dog. Any dog drove to some girl. Some car walked to one boy. The girl jumped over a car. A girl skipped from the dog. The boy drove on one car. A girl jumped on one girl. One dog drove under any boy. Some boy jumped over one boy. Some boy walked under a car. One dog skipped to some town.
Write a function, called PrintPigLatin, which is described below:
void PrintPigLatin(const char* word);This function receives a c-style string (word) as a parameter.
Input 5 words: Flower yellow bypass apple Igloo Pig Latin version of the 5 words: Owerflay ellowyay ypassbay appleway Iglooway
Input 5 words: string Hamburger Rhythm queen zippitydoodah Pig Latin version of the 5 words: ingstray Amburgerhay Ythmrhay ueenqay ippitydoodahzay
textline.c sentences.c piglatin.c