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, 22.06.2019 17:50
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
Website hosting servers have their own unique ip address, what does this address consist of? a. numbers and letters b. numbers c. letters d. letters and symbols
Answers: 2
question
Computers and Technology, 25.06.2019 13:30
Which tab contains the font style attributes? home insert review view
Answers: 1
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
Mathematics, 05.12.2019 03:31
question
Business, 05.12.2019 03:31
question
English, 05.12.2019 03:31
Questions on the website: 13722359