Question: You must: Comment and Format and Must make sure about indenting. If you don't follow these steps, it will be flagged for review. MUST BE

You must: Comment and Format and Must make sure about indenting. If you don't follow these steps, it will be flagged for review. MUST BE IN JAVA FORMAT. IT IS A MUST.

You must: Comment and Format and Must make sure about indenting. If

You must: Comment and Format and Must make sure about indenting. If you don't follow these steps, it will be flagged for review. MUST BE IN JAVA FORMAT. IT IS A MUST.

Exercise 1.B. Write a program that first asks a user to enter two words and a letter. Then print the first word in uppercase letters and the second word in lowercase letters. Print out the number of letters in both words, how many times the inputted letter occurs in both words, and which positions in each word the letter occurs (assuming zero-indexed Strings) After this, print whether the words are the same or not, and finally print out both words backwards. You can use either a while loop or for loop if needed for this exercise Sample output: Enter two word: School House Enter a letter: o SCHOOL house There are 6 letters in School There are 5 letters in House There are 2 os in School There are 1 o's in House o occurs in positions: 3 4in school o occurs in positions: 1 in House School and House are not the same words. loohcS esuoH Provide Printout of properly formatted source code Example output/test cases (3 test cases different than above)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!