See this link for Assignment
Policies, Submission Instructions, and Grading Guidelines.
1. Write a Java program does the following:
2. Ask the user to enter 2 integers & a sentence.
3. Output the same sentence with the substring that the user selected in all UPPERCASE letters, with the rest of the sentence in all LOWERCASE letters.
4. For example, if the user enters the integers 2 & 6 and the sentence “This is a sentence.”, the output would be “thIS Is a sentence.”
5. If the user enters the integers 5 & 15 and the sentence “Bernice is a BEEKEEPER.”, the output would be “berniCE IS A BEekeeper.”
6. Use try-catch blocks so that your program does not crash.
7. For example, if the user enters a String instead of an Integer, then display an appropriate error message.
8. If the user enters & the integers 15 & 5 and the sentence “Bernice is a BEEKEEPER.”, then display an appropriate error message.
© 2007 William Albritton