Question: Create a method called string2Binary that receives a String strinput and returns another one that contains 1 for each vowel of strInput and 0

Create a method called string2Binary that receives a String strinput and returns

Create a method called string2Binary that receives a String strinput and returns another one that contains 1 for each vowel of strInput and 0 otherwise (in the exact same order found in strInput). Create a second method called allString2 Binary that receives a String strText, splits it into words and calls string2Binary for each word to convert it into binary and display it to the console in table format as shown in the attached screenshots. There should be 2 columns. One for the binary word and the other one for the original word. Each word should be in its own line. Prompt the user to enter a string. Call the method allString2Binary and pass the string as parameter so that it displays the table. Submit your Java file. No other file formats will be accepted.

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 Programming Questions!