Question: C program For this programming assignment, you will declare a 2 D array of characters, 4 0 rows by 8 0 characters, to store strings

C program
For this programming assignment, you will declare a 2D array of characters, 40 rows by 80 characters, to store strings supplied by the user from stdin.
You will create and use functions that pass the 2D array from main, load the array with input, and finally analyze the array for the
following: wordcount and number of vowels (a,e,i,o,u). You must pay attention to the case of the characters in the strings.
The user should enter in sentences until either they have entered more than 20 or the user has signaled they wish to stop using
EOF/ctrl+D.
Rubric/Requirements:
1.) The program must use a 2D array. (20 pts)
2.) The program must read in strings from stdin limited to 80 characters in length. This must be done from a user function that passes the array from the caller. (20 pts.)
3.) The program must use at least 1 user function that analyzes the array to count the number of words and the number of vowels. The counts can be returned via a return value or by using pointers. A word is any string or character followed by a space or newline character. (20 pts.)
4.) The program must be neat and use proper naming as well as all structured programming practices (commenting etc.).(20 pts.)
5.) The program must stop reading input when either the user signals to stop or if the array is full. (20 pts.).
*All requirements are subject to partial value and represent the total value for that requirement.

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 Programming Questions!