subject

Write a program to translate any entered string into a variation of the word "Woof" Define 2 character arrays: char human[100], dog[100] Ask the user to enter a string into human. Use cin. getline(human, 100) function call to get the string from the user in main. Create a function void translate(char human[], char dog[]). The function will take in text via the human parameter and pass the translated text via the dog parameter – remember that arrays can be modified inside of functions and setting the characters of dog will effectively change the array passed as that parameter. Think of the human parameter as the input and the dog parameter as the output Translate any one-character word as "w" Two-character word as "wf" Three-character words become "wof" Four-character words become "woof" 6-character words become "wf" and so on, longer words will have a ‘w’ as the first character and an ‘f’ as the last character and however many o’s to have an equivalent resulting length. Make sure your code can handle any word length up to maximum allowed by the character array. Maintain the case as entered by the user. If the user enters "Hello" this becomes "Wooof" From main–not from inside the translate() function–display the translated message

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 24.06.2019 09:40
Healthy study habits are best described as
Answers: 1
question
Computers and Technology, 24.06.2019 12:40
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
You know the right answer?
Write a program to translate any entered string into a variation of the word "Woof" Define 2 charact...
Questions
question
Physics, 13.11.2019 09:31
question
Mathematics, 13.11.2019 09:31
question
Mathematics, 13.11.2019 09:31
question
Spanish, 13.11.2019 09:31
Questions on the website: 13722360