Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started