Java

TOPIC 09 – STRINGS

 

LESSON WORK

 

 

QUESTION 1


Write the program that asks the user to enter a word.  The program then outputs if the word entered is all in upper case, all in lower case or a mixture of both.

 

QUESTION 2

 

Write the program that asks the user for a word and counts the number of vowels in the word.  Assume that ‘y’ is not a vowel.

 

QUESTION 3

 

Write the program that asks the user for a world and it reverses its order.  So “Canada” becomes “adanaC”.