Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Icdt 88 2nd International Conference On Database Theory Bruges Belgium August 31 September 2 1988 Proceedings Lncs 326

Authors: Marc Gyssens ,Jan Paredaens ,Dirk Van Gucht

1st Edition

3540501711, 978-3540501718

More Books

Students also viewed these Databases questions

Question

Let the sample space be C = {c : 0 Answered: 1 week ago

Answered: 1 week ago