In c code You are invited to participate in an encryption algorithm competition. Encryption is a method to change the formation of the message using pre-defined rules. After encryption, the message becomes secure and illegible. Develop a program that takes user input as a string sentence and prints its encryption version using the following rules:

Questions & AnswersCategory: Programming LanguageIn c code You are invited to participate in an encryption algorithm competition. Encryption is a method to change the formation of the message using pre-defined rules. After encryption, the message becomes secure and illegible. Develop a program that takes user input as a string sentence and prints its encryption version using the following rules:
ashok asked 2 years ago

In c code You are invited to participate in an encryption algorithm competition. Encryption is a method to change the formation of the message using pre-defined rules. After encryption, the message becomes secure and illegible.

Develop a program that takes user input as a string sentence and prints its encryption version using the following rules:

• You must include your ID, name and section number as sample input. The program should also include your ID as a prefix to all input sentences.

• Each word should be encrypted separately.

• If a word starts with consonant letter, then that word should be shifted two places in circular way.

For example, “trend” become “ndtre”, “brown” become “wnbro”, etc. Also, after shifting, do append “ay” at the end of the word. So, a word “trend” become “ndtreay”.

• If a word starts with a vowel letter, then it should be encrypted by simply appending \”way\”.

For example, “end” becomes “endway”.

• The letter \’y\’ is a treated as a consonant if it appears as the first letter of a word (yard -> ardyay). As a vowel if it appears at an interior location (at mid or somewhere) take consonants before the first vowel shift to end.

Eg: crybaby-> abycrybay

• Also, \”sch\” at the beginning should become \”sk\” at the end.

Eg: schooner -> oonerskay

• Capitalized words should be capitalized after transformation.

Eg: Sam -> Amsay