Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This problem is in java. Please only complete it with java. Sample Expected input and output below. Another sample input is below. Please complete in

This problem is in java. Please only complete it with java. image text in transcribed
Sample Expected input and output below.
image text in transcribed
Another sample input is below.
image text in transcribed
Please complete in java only, and add everything inside the main function if possible without using any functions.
PROBLEM: Given a sentence (up to 1024 characters long), output the following: 1) 2) 3) The number of different letters. This will be a number from 1 to 26, inclusive. The number of vowels. Vowels are the letters a, e, i, o, and u. The number of uppercase letters. a istini lowercase and uppercase letters 5) The longest word in the sentence. If there is a tie, print the one that appears first when sorting these words alphabetically without regard to lowercase and uppercase. INPUT: One line of data, containing a sentence, up to 1024 characters long. OUTPUT: Print the five statistics specified above in that order. SAMPLE INPUT http://www.datafiles.acsl.org/2019/contest2/jr-sample-input.txt The quick brown fox, named Roxanne, jumped over Bruno, a lazy dog SAMPLE OUTPUT . 25 2. 19 3. 3 5. Roxanne TEST INPUT The 2019 Al1-Star Competition is at Wayne Hills HS in Wayne, New Jersey TEST OUTPUT 1. 16 2. 19 4. 7 5. Competition TEST INPUT The 2019 All-Star Competition is at Wayne Hills HS in Wayne, New Jersey

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions

Question

If you were Adidas, how would you compete with Nike?

Answered: 1 week ago