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

The program in Lab7.java has two parts. The first part is to determine and print

ID: 3814140 • Letter: T

Question

The program in Lab7.java has two parts. The first part is to determine and print how many of each vowel appear in each string entered by a user. The second part is to draw stars in the following format: Download the Lab7java file and add code, then verify that your program is working correctly. Here's an example of how the program output should look when it's all finished. Bold italic text stands for user input. Enter a string or type "quit" to exit: pineapple The string pineapple contains 4 vowel(s) Enter a string or type "quit" to exit: potato salad The string potato salad contains 5 vowel(s) Enter a string or type "quit" to exit: fly sky The string fly sky contains 0 vowel(s) Enter a string or type "quit" to exit: quit The following is PART 2

Explanation / Answer

complete the following for loop to draw spaces:

for(int j=5-i;j>0;j--)

       {

                 System.out.print(" ");

    }

complete the following for loop to draw starts:

    for(int j=1;j<=i;j++)

            {

                     System.out.print("*");

           }