Master Yoda Problem

Question 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"
- 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.

Final 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.

fitting k (56)
Cornell University

Top quality work from this tutor! I’ll be back!

It’s my second time using SP and the work has been great back to back :) The one and only resource on the Interwebs for the work that needs to be done!

Thanks, good work


Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors