Two machine rearranges a given word and number step by step to a fina...
We have
Words are arranged in such a way that words starting with consonants are rearranged first followed by words starts with vowels in alphabetical order.
For words: If the word starts with a vowel then, change all letters with its immediate next letter. Else, if the word starts with a consonant then, change all letters with its immediate preceding letter. Also, after changing letters, letters of the word start with vowel are changed in reverse alphabetical order, and the word starts with consonants are rearranged in alphabetical order.
Numbers are arranged in such a way that even numbers are arranged first followed by odd numbers in ascending order.
For number: If a number is odd, then interchange the first and the last digit, else if a number is even then interchange the first and the second digit.
Based on the above given information we have:
Machine 1:
Input: Social 372 473 Open Under 564 Network 385
Step I: djmnqsv 732 Social 473 Open Under 564 385
Step II: bhknrz 654djmnqsv 732 473 Open Under 385
Step III: qpof 583 bhknrz 654djmnqsv 732 473 Under
Step IV: vsofe 374 qpof 583 bhknrz 654 djmnqsv 732
Machine 2:
Input: 381 Travel 468 Magic 624 Above Entry 531
Step I: bfhlz 648 381 Travel 624 Above Entry 531
Step II: dkqsuz 264 bfhlz 648 381 Above Entry 531
Step III: wpfcb 183 dkqsuz 264 bfhlz 648 Entry 531
Step IV: zusof 135 wpfcb 183 dkqsuz 264 bfhlz 648