Master Yoda Problem

User Generated

bb fvfv

Programming

Description

(String) Master Yoda (a character from the Star Wars Movies) always phrases his
sentences by placing the object before the subject and verb.
For example:
Normal sentence: "He is your father!"
Yoda speak: "Your father, he is"
Normal sentence: "You are going to win."
Yoda speak: "Going to win, you are"
Note:
- You can assume every normal sentence ends with punctuation.
- Punctuation conversion is needed.
- Case conversion is a plus

Write a complete program with the following function to translate to Yoda speak:
string YodaSpeak( string input )
//Purpose: "Translate" the input string into Yoda Speak
//Pre: input is a string with words only.
// The subject and the verb are 1 word each.
// The rest can be multiple words.
//Post: Return a string with the Subject and Verb moved to the
// end of the string.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Thank you for the opportunity to help you with your question!

in general, do not need to be licensed or pass any standardized (or governmentally regulated) certification tests in order to call themselves "programmers" or even "software engineers.

Please let me know if you need any clarification. I'm always happy to answer your questions.

Related Tags