Question: Write a static method to convert a String into corresponding login password. Write a main( method that tests in another class named Password. This

Write a static method to convert a String into corresponding login password. Write a main( method that tests

Write a static method to convert a String into corresponding login password. Write a main( method that tests in another class named Password. This static method should use following rules for substituting letters or symbols with digits. If current character is a lowercase vowel, then replace with 3 and for an uppercase vowel replace with 5. Similarly, for lower consonants replace with 2 and for uppercase consonants replace with 4. If any special symbol is seen, then it must be replaced with its corresponding position (Consider that starting position is 0). Example: String GoOd82# will be converted to 4352826

Step by Step Solution

3.41 Rating (135 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The answer provided below has been developed in a clear step by step manner Step 1 As you have not m... View full answer

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 Computer Network Questions!