Question: Project: Extracting information from strings (using methods, loops, if-else statements and string functions) Problem Description: Write a program that reads in a string sentence entered

 Project: Extracting information from strings (using methods, loops, if-else statements and
string functions) Problem Description: Write a program that reads in a string

Project: Extracting information from strings (using methods, loops, if-else statements and string functions) Problem Description: Write a program that reads in a string sentence entered by a user. The program then estracts the first word of and compates the number of vowels in this word. For example, the sentence enncred by a user is "UT-Dallas is in Richardson, Texas.. The first word in this sentence is "UT-Dallas-and there ant the oudin chis word ( and In the java class containing the main method there should be two more methods fisord and mumberOrWowels The program should call/invoke the method firrll ordand pass the string aras an argument to this method jilln should then estract the first word from swteecr and return its first word which will stored in a variable wordlst of type string in the main method. The program inside the main methodi) should convert all the letters in the stringto lowrer case and name this new string (with all letters in lower case) wordistLowerCase The program should then callinvoke the method aumberoNowels and pass the sering ael stlaweCar as an argument to this meshod miO w should calculate the number of vowels in alal awerCar and retum this number (nteget) wich will be soned in a variable of type int. The program fimally displays the output as shown in the following sample rums Hints for writing the Java code for this peoject and the deliveralbles are povided on the nest pags Do remember to check and verify the outpat in all the folowing sample output nns for your peogram before uploading your java file on eleaning. Please ensure that the output of your program matches esxsactly that given in the sample Please DO NOT USE ARRAYS to write this program. Sample 1 The first word of the sente ce-Hello Sample 2 Enter a sentence: Univeraity of Texas at Dailass in Texas University and there are 4 vovels in University ITSS3311,003 Introduction to Deliverables: Your -java file inclading 1. Sample runs at the top of the Java code for the following string: Programing is fun The ourput for this string should be inserted between comments on the top of the Java code (befoee the impont and class statements) The format of the output shouild be in accordance with those shown in the 2 samplie nums above. (0.5 point) Your code with appropriate comments. (Code: 9 points, Comments: 0.5 pont 2. Hints (The following hints describe one way to write the Java code for this project)s 1. The program 2. The header of method firstWord should be public static String firstWord(Sering sentence) should call invoke two methodsrsrWord and numberonowe inm-tsade de main method

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!