Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

NOTE: Do NOT use the StringBuffer class (1) Ask the user to type in a sentence o

ID: 3538496 • Letter: N

Question

NOTE: Do NOT use the StringBuffer class


(1) Ask the user to type in a sentence or phrase with between 2 and 5 words (2 really would be fine).

(2) Display the user%u2019s sentence or phrase.

(3) Reverse the wording by word.

(4) Reverse the entire sentence by characters.

(5) Find a substring in the sentence or phrase and display it. (It need not be an actual word)

(6) Display only the first word of the user%u2019s sentence or phrase all in upper case letters.

(7) Display the length of the original sentence or phrase.

EXAMPLE

(1) User types in %u201CPalomar College Student%u201D

(2) Displayed: Palomar College Student

(3) Reversed wording: Student College Palomar

(4) Characters in words reversed: tnedutS egelloC ramolaP

(5) SubString: leg OR Pal

(6) PALOMAR College Student

(7) Length: 23



**// I cant figure out how to do number three or five. I dont know what string method to use for these. Also any idea how to do number six? Examples of these would be great. Thank you


Explanation / Answer

I can do it for you but haven't asked more question are you sure you will rate??