Question: Problem 3: String encoder (40 Points) Write a C program to input a string from the user and encodes it into a different string of

Problem 3: String encoder (40 Points) Write a C program to input a string from the user and encodes it into a different string of same length according to the following rules. 1. Convert all the lower-case letter in it to the corresponding upper-case letter. 2. Convert all the upper-case letter in it to the corresponding lower-case letter 3. Convert each even digit in it to O' and each odd digit in it to 1 4. Keep any other character unchanged Your program must print the encoded string. You are not allowed to use any string library functions. Name your program file pa3_q3.c HINT: Read about ascii characters and its representations. Read about character arrays. Use scanf) to input the string using a character array of size 30. Example1: Enter the string Ab@#9 8760ZgYRInNc-14Sz Encoded string aB@# 10 1002GyrMn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
