Question: I need help with this You are responsible for writing an extension for the MS Word application, which is responsible for counting the number of

I need help with this

You are responsible for writing an extension for the MS Word application, which is responsible for counting the number of vowels, white spaces and digits in a given text, and reporting these numbers to the user. Given below is the program implementing that extension. Fill in the spaces.

Do not use ctype.h library.

Hint: In ASCII, each char corresponds to a number. The digit characters 0 through 9 are consecutive.

int main()

{

char text[100];

int c, i=0, vowelCount=0, spaceCount=0, digitCount=0;

printf("enter text: ");

gets(text);

while ( ) // check if the end of the text has been reached (3 pts) { c= (int) text[i]; if ( c == ) spaceCount++; else if ( ) // check if text[i] is a vowel in the English alphabet (3 pts) ; // update the correct counter (2 pts) else if ( ) // check if text[i] is a number (3 pts) .; // update the correct counter (2 pts) .. // complete (3 pts) } printf( ); // report the 3 counters to the user (4 pts)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!