Question: 1 . ( 1 2 points ) Write Java code to repeatedly print each single digit between 1 and 9 the number of times based

1.(12 points) Write Java code to repeatedly print each single digit between 1 and 9 the
number of times based upon its numeric value. Thus, you would get a triangle of the
shape below where 1 prints once, 2 twice ... and 9 prints 9 times.
1
22
333
4444
55555
666666
7777777
88888888
999999999
2.(14 points) Write Java code to read strings of lower-case letters from the keyboard
and count the number of vowels in each word. (vowels are a,e,i,o and u). When all
strings have been read in, print the string that has the largest number of vowels
(duplicates included) and how many vowels were in the string. When more than one
string has the greatest number of vowels, print the first string found with that
number. For example, with input of she groceries yourselves here radio, the
correct answer would be: groceries 4 vowels.
CISC 1115 Spring 2021 Final Exam

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!