for Loops Assignment

See this link for Assignment Policies, Submission Instructions, and Grading Guidelines.

Instructions

1.      Write a Java applet that does the following:

2.      Use a Label, TextField, and Button to ask the user to enter a sentence.

3.      After the user presses the Button, then get the user’s sentence from the TextField.

4.      Use a “for loop” to loop through each character in the sentence.

5.      Use “if statements” or “if-else statements” and the String method “equals()” to count the number of each vowel (a, e, i, o, u) in the sentence.

6.      Display the counts of each vowel (a, e, i, o, u) on the Applet.

7.      In the body of your e-mail, include the link to the HTML page that displays your applet.

 

 

 

© 2007 William Albritton