Question: Write a program: Encode.c - Input: a text file - Output: a text file encrypted in the following way: a) increment all vowels to the
Write a program: Encode.c - Input: a text file - Output: a text file encrypted in the following way: a) increment all vowels to the next vowel in order (a, e, i, o ,u), i.e, a turns to e, e to i,i to o,o to u and u to a. b) increment all consonants by 3 in order, i.e., c turns to f, d to g, and so on. Requirement: the only input/output functions you can use are getchar() and putchar(). If you want to use any other function, you have to implement it by yourself. Hint: Use a library function to determine whether the character that getchar() returns is an alphabet or not. To run your program at your local computer, type the following at the command line prompt: RemoveEmptyLines < input_file > output_file where you provide input_file as the name of the input file and output_file as the name of the output file. SUBMISSION: Submit only the .c source code. GRADING: The judge will take your program and test it with a number of test cases. Each test case has an input file and its corresponding correct output file. If your program runs correctly on X% of the test cases, you will get X points.
C Language, cannot use scanf or f gets must use getchar function, you can skip non alphabetics
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
