Question: L2T02 - Task 3 Help with a functional Java Create a new file called longWords.java Write a program that determines how many words greater than

L2T02 - Task 3

Help with a functional Java

Create a new file called longWords.java Write a program that determines how many words greater than 4 letters long have been entered and calculate the average length of all the words entered. Firstly, ask the user to enter any number of words and store them in an array. The user should enter 0 to indicate the end of their input.

The program should then determine the number of words longer than 4 letters entered by the user, and print out the result. The average length of the words given should then be calculated and displayed.

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!