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 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Plz there is a problem with my account. i no longer have ! ( hand,ambitious,virtuoso etc.) it's like getting brainliest means nothing. how do i get ranks back?
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, 27.10.2020 23:50
question
English, 27.10.2020 23:50
question
Mathematics, 27.10.2020 23:50
question
Mathematics, 27.10.2020 23:50
Questions on the website: 13722360