Question: Exercise: Devowelling Text (pair) This is a pair exercise to complete with your lab partner Write a C program devowel.c which reads characters from its

Exercise: Devowelling Text (pair) This is a pair exercise to complete with your lab partner Write a C program devowel.c which reads characters from its input and writes the same characters to its output, except it does not write lower case vowels (a', 'e',', 'o', 'u') Your program should stop only at the end of input. For example ? ./devowel Are you saying "Boo' or 'Boo-Urns'? Ar y syng 'B'r 'B-Urns'? In this house, we obey the laws of thermodynamics! In ths hs, w by th lws f thrmdynmcs! Ctrl-d Hint: hint use getcharto read characters (don't use scanf or fgets) Hint: you need only a single int variable. Don't use an array Hint: use putchar to output each character. Hint: make sure you understand this example program which reads characters untll end of input. Hint: make sure you understand this example program which reads characters, printing them with lower case letters converted to upper case Hint: create a function with a prototype like this: int is_vowel (int character) which returns 1 the character is a lower case vowel and 0 otherwise Hint: To tell the program you have finished typing, you can press Ctrl+D When you think your program is working you can use autotest to run some simple automated tests: 1511 autotest devowel Autotest Results 95% of 44 students who have autotested devowel.c so far, passed all autotest tests 95% passed test 0 95% passed test 1 95% passed test 2 When you are finished on this exercise you and your lab partner must both submit your work by running give: ? give cs1511 wk06_devowel devowel.c Note, even though this is a pair exercise, you both must run give from your own account before Sunday 15 April 23:59:59 to obtain the marks for the lab exercise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
